摘要:
entry:path.resolve(__dirname,'src/index.js'), output:{ path:path.resolve(__dirname,'dist'), filename:'[name].[contenthash].js' }, devServer:{ //实时重新加载 阅读全文
摘要:
安装: npm i webpack-dev-server -S webpack.config.js: devServer:{ //实时重新加载 host:"localhost", port:"8081", contentBase:"./dist", //告诉从什么位置查找文件 compress:tr 阅读全文