开始照着老师的敲,然后自己在plugins里面添加了excludeChunks['main],因此在接下来的视频中,<%= htmlWebpackPlugin.files.chunks.main.entry %>会报错,希望没有像我这样的,【捂脸】
2017-06-29
<%= htmlWebpackPlugin.files.chunks.main.entry %>怎么能放到script标签里面呢,这不吧
2017-06-29
最新回答 / 不完美
好吧,我把<% for(var key in htmlWebpackPlugin) { %><%= key %><% } %>这段代码注释掉之后就报错了,删了就好了
2017-06-29
我的一直报错,求大神帮忙 谢谢~
No configuration file found and no output filename configured via CLI option.
A configuration file could be named 'webpack.config.js' in the current directory.
Use --help to display the CLI options.
No configuration file found and no output filename configured via CLI option.
A configuration file could be named 'webpack.config.js' in the current directory.
Use --help to display the CLI options.
2017-06-29
有些人素质真的很低下/低下/低下,老师信心苦苦录个视频教学,就算出点错也是正常的,整天在那里骂骂咧咧的,不愿意看就别看,滚。。。
2017-06-28
配置的时候windows和苹果的机器在path项路径上可能有差别,windows下要先var path = require('path')
然后路径为path: path.resolve(__dirname, './__build__') ;老师讲的还是挺好的!赞
然后路径为path: path.resolve(__dirname, './__build__') ;老师讲的还是挺好的!赞
2017-06-28
老师开始讲的时候貌似没有说安装webpack,但是使用webpack命令,需要安装webpack,使用的时候先全局安装一下,npm install webpack -g,然后npm init, npm install --save-dev webpack,npm install css-loader style-loader --save-dev
2017-06-28