-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebpack.config.js
44 lines (40 loc) · 1.08 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
module.exports = {
// 入力ファイル
entry: "./external_modules_src.js",
output: {
// 出力先
path: `${__dirname}/dist`,
// 生成済みファイルから参照される時のパス
publicPath: "dist/",
// 生成ファイル
filename: "external_modules.js",
// 出力フォーマット
//libraryTarget: "umd",
},
// electron 向け
target: "electron-renderer",
// 開発バージョン
//mode: "production",
mode: "development",
// Source map の有効化
devtool: 'inline-source-map',
// Vue のインスタンスが複数ある旨のエラーを抑制するために必要
resolve: {
alias: {
'vue$': 'vue/dist/vue.js'
}
},
// CSS
module: {
rules: [{
test: /\.css/,
use: [
"style-loader",
{
loader: "css-loader",
options: { url: false }
}
]
}]
}
};