-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
36 lines (35 loc) · 972 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
var webpack = require("webpack");
var path = require('path');
module.exports = {
module: {
loaders: [
{
test: /\.js$/,
include: path.join(__dirname, 'source/js'),
loaders: ['babel-loader']
}
]
},
externals: {
jquery: 'jQuery'
},
plugins: [
new webpack.ProvidePlugin({
Popper: ['popper.js', 'default'],
Util: 'exports-loader?Util!bootstrap/js/dist/util',
Dropdown: 'exports-loader?Dropdown!bootstrap/js/dist/dropdown',
Collapse: 'exports-loader?Collapse!bootstrap/js/dist/collapse',
Carousel: 'exports-loader?Carousel!bootstrap/js/dist/carousel',
Tab: 'exports-loader?Tab!bootstrap/js/dist/tab'
}),
new webpack.optimize.UglifyJsPlugin()
],
entry: {
app: ["./source/js/app"]
},
output: {
path: path.join(__dirname, "/static/js"),
publicPath: "/",
filename: "[name].js"
}
};