eastegg

流程(在项目目录中):

npm init >

npm install  (npm config list查看镜像, npm config set registry "https://registry.npm.taobao.org"配置淘宝镜像) >

npm install webpack -g (全局安装的webpack是为了在全局环境下使用webpack命令)>

npm install webpack@1.15.0 --save-dev  (webpack2以上版本用来压缩js代码的uglifyjs中,一条语句使用了对象object的default属性。在IE8下会出报错。) >

安装配置脚本(提取公共模块)、样式、html处理插件。

 

 

详细步骤:

npm init > 填写信息 > npm install webpack -g > npm install webpack@1.15.0 --save-dev >

webpack -v > 建立webpack.config.js并编辑,安装fileheader。command + ctrl +a 插入header。>

 

分类:

技术点:

相关文章:

  • 2021-10-23
  • 2021-09-30
  • 2021-08-12
猜你喜欢
  • 2022-01-12
  • 2021-04-28
  • 2022-01-22
  • 2021-11-04
  • 2021-12-22
相关资源
相似解决方案