File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " demo" ,
3- "version" : " 0.0.1" ,
4- "scripts" : {
5- "build" : " webpack"
6- }
3+ "version" : " 0.0.1"
74}
Original file line number Diff line number Diff line change @@ -4,28 +4,27 @@ const InlineSourceWebpackPlugin = require('../index');
44
55module . exports = {
66 entry : {
7- index : './src/index' ,
8- bundle : './src/bundle'
7+ index : './demo/ src/index.js ' ,
8+ bundle : './demo/ src/bundle.js '
99 } ,
1010 output : {
1111 path : path . resolve ( __dirname , 'dist' ) ,
1212 publicPath : '/inline-source-webpack-plugin/demo/dist/' ,
1313 filename : '[name].[contenthash].js'
1414 } ,
1515 optimization : {
16- namedChunks : true ,
1716 runtimeChunk : 'single'
1817 } ,
1918 plugins : [
2019 new HtmlWebpackPlugin ( {
2120 filename : 'index.html' ,
22- template : './src/index.html' ,
21+ template : './demo/ src/index.html' ,
2322 inject : 'body' ,
2423 chunks : [ 'runtime' , 'index' ]
2524 } ) ,
2625 new InlineSourceWebpackPlugin ( {
2726 compress : true ,
28- rootpath : './src' ,
27+ rootpath : './demo/ src' ,
2928 noAssetMatch : 'warn'
3029 } )
3130 ] ,
Original file line number Diff line number Diff line change 77 " index.js"
88 ],
99 "scripts" : {
10- "test" : " jest --runInBand"
10+ "test" : " jest --runInBand" ,
11+ "build:demo" : " webpack --config ./demo/webpack.config.js"
1112 },
1213 "repository" : {
1314 "type" : " git" ,
You can’t perform that action at this time.
0 commit comments