webpack-staticmap-plugin

0.0.2 • Public • Published

webpack-staticmap-plugin

npm

generate assets map of webpack(v4) compilation

Usage

npm install webpack-staticmap-plugin --save-dev

webpack.config.js:

const StaticMapPulgin = require('webpack-staticmap-plugin');

module.exports = {
  module: {
    rules: [...]
  },
  plugins: [
    new StaticMapPulgin({
      // options
    })
  ]
}

Options

  • outputfile: specific name of the generated file, static.json by default;
  • dev: enable/disable development mode;
  • publicPath: root path of all static files,default to be '/';

assets map info would be assigned to global varable under development mode.

Dependents (0)

Package Sidebar

Install

npm i webpack-staticmap-plugin

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

3.06 kB

Total Files

3

Last publish

Collaborators

  • zhoujunpeng