2.0.1 • Published 7 months ago

ray-plugins v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 months ago

ray-plugins

the plugins for webpack

author

ilex.h

api

namedescription
OpenUrlPluginClasses6 直接用默认浏览器打开url
OpenUrlPlugins直接用默认浏览器打开url
OpenBrowser直接用默认浏览器打开url
RayShowwebpack打包进度展示
RayProgresswebpack打包进度展示(推荐使用)
browser浏览器参数 chrome|firefox
tools常用工具tools.trim(str): 移除字符串前后空格
const OpenBrowser = require('ray-plugins/lib/openBrowser');

const commonConfig = {
  plugins: [
    // open http://localhost:3000 in default browser
    new OpenBrowser({ url: 'http://localhost:3000' }),
    // more options
    // specify firefox to open
    new OpenBrowser({ url: 'http://localhost:3000', browser: 'firefox' }),
    // delay 3 seconds
    new OpenBrowser({ url: 'http://localhost:3000', delay: 3 * 1000 }),
    // By default, this plugin only works when no compile error
    new OpenBrowser({ url: 'http://localhost:3000', ignoreErrors: true }),
    // You can set a group of option to open multiple urls in multiple browsers
    new OpenBrowser([
      { url: 'http://localhost:3000', browser: 'chrome' },
      { url: 'http://localhost:3000', browser: 'firefox' },
    ]),
  ],
};
2.0.1

7 months ago

2.0.0

4 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago