aswi2020vldc-gitlab/templetes/webpack.config.js @ b66f682e
1 |
const path = require('path'); |
---|---|
2 |
module.exports = { |
3 |
entry: './src/js/app.js', |
4 |
output: { |
5 |
path: path.resolve('web/js/'), |
6 |
filename: 'app.js' |
7 |
},
|
8 |
module: { |
9 |
rules: [ |
10 |
{ test: /\.css$/, |
11 |
use: [ |
12 |
{ loader: "style-loader" }, |
13 |
{ loader: "css-loader" } |
14 |
]
|
15 |
},
|
16 |
{
|
17 |
test: /\.js$/, |
18 |
exclude: /node_modules/, |
19 |
use: "babel-loader" |
20 |
}, { |
21 |
test: /\.jsx?$/, |
22 |
exclude: /node_modules/, |
23 |
use: "babel-loader" |
24 |
}
|
25 |
]
|
26 |
}
|
27 |
}
|