2.0.1 • Published 2 years ago

ray-plugins v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years 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

2 years ago

2.0.0

5 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago