yarn add babel-preset-latest
error An unexpected error occurred: "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions: connect ETIMEDOUT 104.16.62.173:443"
info If you think this is a bug, please open a bug report with the information provided in "yarn-error.log"
error An unexpected error occurred: "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions: connect ETIMEDOUT 104.16.62.173:443"
info If you think this is a bug, please open a bug report with the information provided in "yarn-error.log"
2017-03-16
最赞回答 / 烈日当空0707
var HtmlWebpackPlugin = require('html-webpack-plugin'); 可以随意。但是在模板中<title><%= htmlWebpackPlugin.options.title %></title>必须使用驼峰式命令。不然会报错一直提示这个插件未定义。这是一个坑啊。弄了好久才知道。
2017-03-16
Error: Cannot find module 'webpack/lib/node/NodeTemplatePlugin'
2017-03-16