From 60e6b90ae849683a79eea63942d20abc8402fbbd Mon Sep 17 00:00:00 2001 From: pplokijuhyg <1162963624@qq.com> Date: Sun, 1 Dec 2019 18:26:51 +0800 Subject: [PATCH] update --- newnote_1575188516330.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/newnote_1575188516330.md b/newnote_1575188516330.md index e907088..bcb021f 100644 --- a/newnote_1575188516330.md +++ b/newnote_1575188516330.md @@ -20,4 +20,13 @@ module.exports = { ## 出口 出口是告诉webpack将所打包成功的 bundel输出到哪个位置 以及如何命名 默认为./dist -可以使用 \ No newline at end of file +可以使用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' + } +};