update
This commit is contained in:
@@ -38,18 +38,4 @@ linux 系统 运行 yarn global bin 查看 yarn 的全局目录,然后 #expor
|
||||
/src
|
||||
index.js 要压缩的js文件
|
||||
package.json 应用的默认配置
|
||||
|
||||
webpack.config.js
|
||||
|
||||
>内容:
|
||||
```
|
||||
const path = require('path');
|
||||
module.exports = {
|
||||
// 入口js路径
|
||||
entry: './src/index.js',
|
||||
// 编译输出的js及路径
|
||||
output: {
|
||||
filename: 'bundle.js',
|
||||
path: path.resolve(__dirname, 'dist')
|
||||
}
|
||||
};
|
||||
webpack.config.js
|
||||
Reference in New Issue
Block a user