0.0.2 • Published 6 years ago

webpack-staticmap-plugin v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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.

0.0.2

6 years ago

0.0.1

6 years ago