2017年4月18日
摘要: 新建一个webpack-demo工程,然后在根目录下建一个webpack.config.js文件,格式如图 1、单个文件打包模式,webpack.config.js 2、如果有另一个文件webpack.dev.config.js 运行命令为 webpack --config webpack.dev. 阅读全文
posted @ 2017-04-18 22:14 宝清老窖 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1、最简单的命令 hello.js webpack hello.js hello.bundl.js //即把hello.js 压缩成 hello.bundle.js 2、requrie hello.js world.js webpack hello.js hello.bundle.js 3、requ 阅读全文
posted @ 2017-04-18 21:12 宝清老窖 阅读(117) 评论(0) 推荐(0) 编辑