07 2017 档案

摘要:1、安装webpack-html-plugin模块 $ npm install webpack-html-plugin —save-dev 2、webpack.config.js文件写入 var WebpackHtmlPlugin = require(‘webpack-html-plugin'); 阅读全文
posted @ 2017-07-26 12:07 respectable 阅读(3398) 评论(0) 推荐(0)
摘要:项目压缩打包时,出现如下问题: ERROR in views/index/index.js from UglifyJs Unexpected token: [./node_modules/pingyin/lib/index.js] 思路一: pinyin模块是es6编写的,index.js文件应转为 阅读全文
posted @ 2017-07-25 12:08 respectable 阅读(2149) 评论(0) 推荐(0)
摘要:Nvm安装成功后,使用nvm命令却提示command not found,mac终端解决办法如下: 1、进入nvm安装到文件目录 cd ~/.nvm 2、查看目录下文件列表 ls 3、若无.bash_profile文件,则创建该文件: 创建文件步骤: 3.1 touch .bash_profile 阅读全文
posted @ 2017-07-24 09:18 respectable 阅读(12998) 评论(0) 推荐(0)