不错,老师辛苦了,别太紧张,要是出错了附一个纠错文档吧,我们也是新手,第一次接触,所以我们可能看不出你的错误来,只能按你说的敲
2017-03-14
<script type="text/javascript">
<%=compilation.assets[htmlWebpackPlugin.files.chunks.main.entry.substr(htmlWebpackPlugin.files.publicPath.length)].source() %>
</script>
这句有报错,很郁闷
<%=compilation.assets[htmlWebpackPlugin.files.chunks.main.entry.substr(htmlWebpackPlugin.files.publicPath.length)].source() %>
</script>
这句有报错,很郁闷
2017-03-14
https://github.com/luopeihai/webpack-demo2.git 为整套源码,其中有在本机运行但是报错的 用其他解决方案,还有sass 运行效果,README.md步骤都写清楚,如果你还 跑不通我就金盆洗手
2017-03-13
最赞回答 / 狸窝
npm remove webpack -gnpm i webpack --save-dev如果是全局安装会报错,此时执行上面两个命令。原因如下:You have to npm i webpack --save-dev , global install doesn't work.install it globally if you want the CLI anywhere. ever install it locally in your project if you use webpack. the gl...
2017-03-13
{
test: /\.(png|jpg|gif|svg)$/i,
loaders:[
'url-loader?limit=1000&name=assets/[name]-[hash:5].[ext]',
'image-webpack-loader' //压缩
]
}
test: /\.(png|jpg|gif|svg)$/i,
loaders:[
'url-loader?limit=1000&name=assets/[name]-[hash:5].[ext]',
'image-webpack-loader' //压缩
]
}
2017-03-12