-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
37 lines (35 loc) · 1.12 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
const resolve = require('path');
const merge = require('webpack-merge');
const createDefaultConfig = require('@open-wc/building-webpack/modern-and-legacy-config.js');
const configs = module.exports = createDefaultConfig({ //for ie11
input: [resolve.resolve(__dirname, './index.html')]
});
module.exports = configs.map(config =>
merge(config, {
resolve: {
extensions: [".ts", ".js"],
alias: {
"@view": resolve.resolve("./app/view"),
"@root": resolve.resolve("./"),
"@app": resolve.resolve("./app")
}
},
module: {
rules: [
{
test: /\.ts$/, loader: "ts-loader"
},
{
test: /\.css$/,
use: ['css-loader'],
},
]
}
// 아래 코드 쓰면 ie에선 안됨.
// ,
// output: {
// filename: 'bundle.js',
// path: resolve.resolve(__dirname, 'dist'),
// }
}),
);