Skip to content

boijs/webpack-staticmap-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

generate assets map of webpack(v4) compilation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors