-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
34 lines (31 loc) · 786 Bytes
/
webpack.config.js
File metadata and controls
34 lines (31 loc) · 786 Bytes
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
const path = require('path');
const DIST_DIR = path.resolve(__dirname, 'dist');
const SRC_DIR = path.resolve(__dirname, 'src');
const config = {
mode: 'none',
entry: SRC_DIR + '/app/index.js',
output: {
path: DIST_DIR + '/app',
filename: 'bundle.js',
publicPath: '/app/'
},
module:{
rules:[
{
test: /\.js$/,
include: SRC_DIR,
exclude: /node_modules/,
use: [
{
loader: 'babel-loader',
}
]
},
{
test:/\.(s*)css$/,
use:['style-loader','css-loader', 'sass-loader']
}
]
}
};
module.exports = config;