-
Notifications
You must be signed in to change notification settings - Fork 1
/
mlv_panel_config.js
48 lines (43 loc) · 1.06 KB
/
mlv_panel_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
46
47
48
const path = require('path');
webpack=require("webpack");
module.exports = {
entry: './src/indexes/mlv_panel_index.js',
output: {
path: path.resolve(__dirname,"dist"),
filename: 'mlv_panel.js',
},
plugins: [
new webpack.ProvidePlugin({
//The following can be removed if you already have imported jquery
$: "jquery",
jQuery: "jquery"
})
],
module:{
rules:[
//This can be removed if you don't want to support older browsers
{
test : /\.js/,
loader : 'babel-loader',
query: {
presets: ['es2015']
}
},
{
test: /\.css$/,
loaders: ["style-loader","css-loader"]
},
{
test: /\.(png|svg|jpg|gif|eot|ttf|woff|woff2)$/,
loader:"file-loader",
options:{
name:'[name].[ext]',
//the location in the dist folder
outputPath:'images',
//the location where the css will look for images
publicPath:'images'
}
}
]
}
};