assets-and-replace-webpack-plugin

1.0.3 • Public • Published

assets-and-replace-webpack-plugin


new AssetsAndReplaceWebpackPlugin({
    path: '.',
    prettyPrint: true,
    filename: 'chunksname.js',
    pages: [
        {entry: path.resolve(__dirname, './a.dev.jsp'), output: path.resolve(__dirname, './a.jsp'), matches: {js: 'main'}}
    ],
    //照样生成文件,用于对比
    processOutput: function (assets) {
        return JSON.stringify(assets);
    }
})

Package Sidebar

Install

npm i assets-and-replace-webpack-plugin

Weekly Downloads

4

Version

1.0.3

License

MIT

Last publish

Collaborators

  • jackple