— Webpack, javascript — 1 min read
1module.exports = {2 entry: {},3 output: {},4 module: {},5 plugins: [6 new webpack.optimize.UglifyJsPlugin()7 // ...8 ]9};
1new webpack.ProvidePlugin({2 $: 'jquery'3})
1new webpack.DefinePlugin({2 PRODUCTION: JSON.stringify(true),3 VERSION: JSON.stringify('5fa3b9'),4 BROWSER_SUPPORTS_HTML5: true,5 TWO: '1+1',6 'typeof window': JSON.stringify('object')7})
1new ManifestPlugin({2 fileName: 'manifest.json',3 basePath: './dist/'4})