update
This commit is contained in:
parent
67b2c86880
commit
60e6b90ae8
@ -20,4 +20,13 @@ module.exports = {
|
||||
## 出口
|
||||
出口是告诉webpack将所打包成功的 bundel输出到哪个位置 以及如何命名
|
||||
默认为./dist
|
||||
可以使用
|
||||
可以使用output定义
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: './path/to/my/entry/file.js',
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
filename: 'my-first-webpack.bundle.js'
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user