最新回答 / 最初的梦想gawin
rules: [ { test: /\.js$/, include: path.resolve(__dirname,'src'), exclude: path.resolve(__dirname,'node_modules'), loader: "babel-loader" }, { test: /\.css$/, use: [ 'style-loader', { ...
2017-03-20
最赞回答 / 烈日当空0707
var HtmlWebpackPlugin = require('html-webpack-plugin'); 可以随意。但是在模板中<title><%= htmlWebpackPlugin.options.title %></title>必须使用驼峰式命令。不然会报错一直提示这个插件未定义。这是一个坑啊。弄了好久才知道。
2017-03-16