File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 99 < div id ="app-root ">
1010 </ div >
1111 </ body >
12+ < script src ="/bundle.js "> </ script >
1213</ html >
1314
Original file line number Diff line number Diff line change 11const path = require ( 'path' ) ;
22const webpack = require ( 'webpack' ) ;
3- const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
43
54module . exports = {
65 mode : process . env . NODE_ENV === 'production' ? 'production' : 'development' ,
@@ -14,6 +13,7 @@ module.exports = {
1413 } ,
1514 devtool : 'source-map' ,
1615 devServer : {
16+ static : { directory : path . resolve ( __dirname ) } ,
1717 allowedHosts : 'all' ,
1818 host : 'localhost' ,
1919 hot : true ,
@@ -33,10 +33,6 @@ module.exports = {
3333 ] ,
3434 } ,
3535 plugins : [
36- new HtmlWebpackPlugin ( {
37- template : './index.html' ,
38- inject : true ,
39- } ) ,
4036 new webpack . DefinePlugin ( {
4137 'process.env.NODE_ENV' : JSON . stringify ( process . env . NODE_ENV || 'development' ) ,
4238 } ) ,
You can’t perform that action at this time.
0 commit comments