摘要:
新建一个webpack-demo工程,然后在根目录下建一个webpack.config.js文件,格式如图 1、单个文件打包模式,webpack.config.js 2、如果有另一个文件webpack.dev.config.js 运行命令为 webpack --config webpack.dev. 阅读全文
摘要:
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 阅读全文