-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
37 lines (37 loc) · 979 Bytes
/
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
var HtmlWebpackPlugin = require('html-webpack-plugin');
var path = require('path');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
var webpackConfig = {
mode: 'development',
entry: './src/uiDevelop.js',
output: {
path: path.resolve(__dirname, './build'),
filename: 'dev.js'
},
module: {
rules: [{
test: /\.(html|md)$/,
use: {
loader: 'html-loader',
options: {}
}
},
{
test: /\.(png|jpg|gif|jpeg)$/,
use: [
{
loader: 'url-loader',
options: {
limit: 8192
}
}
]
},
{ test: /\.css$/, use: ['style-loader', 'css-loader'] }
]
},
plugins: [
new HtmlWebpackPlugin()
]
};
module.exports = webpackConfig;