forked from mamorimo/local
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
45 lines (44 loc) · 1.23 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
45
module.exports = {
entry: {
"modul1":"./src/main/webapp/js/product/main.js",
"modul2":"./src/main/webapp/js/product/main2.js"
},
output: {
path: __dirname,
filename: './src/main/webapp/js/dist/[name].bundle.js'
},
resolve: {
extensions: ['.js', '.vue'],
alias: {
vue: 'vue/dist/vue.esm.js',
}
},
module: {
rules: [
{
test: /\.vue$/,
exclude: /node_modules/,
loader: 'vue-loader',
options: {
loaders: {
// Since sass-loader (weirdly) has SCSS as its default parse mode, we map
// the "scss" and "sass" values for the lang attribute to the right configs here.
// other preprocessors should work out of the box, no loader config like this nessessary.
'scss': 'vue-style-loader!css-loader!sass-loader',
'sass': 'vue-style-loader!css-loader!sass-loader?indentedSyntax'
}
// other vue-loader options go here
}
},
{
test: /\.js$/,
exclude: /node_modules/,
loader: "babel-loader",
},
{
test: /\.(css|sass|scss)$/,
loader: 'sass-loader',
}
]
}
};