-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
39 lines (39 loc) · 1.52 KB
/
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
38
39
var webpack = require('webpack');
module.exports = {
entry: {
main: __dirname + "/resources/assets/js/main.js"
},
output: {
path: __dirname + "/public/js/dist/",
filename: "[name].bundle.js",
chunkFilename: "[id].bundle.js"
},
plugins: [
new webpack.ProvidePlugin({
$: 'jquery',
jquery: 'jquery',
'window.jQuery': 'jquery',
jQuery: 'jquery'
})
],
resolve: {
alias: {
'jquery': __dirname + '/node_modules/jquery/dist/jquery.js',
'handlebars': __dirname + '/node_modules/handlebars/dist/handlebars.js',
'vue': __dirname + '/node_modules/vue/dist/vue.js',
'datatables': __dirname + '/node_modules/datatables.net-bs/js/dataTables.bootstrap.js',
'bootstrap-checkbox': __dirname + '/node_modules/bootstrap-checkbox/js/bootstrap-checkbox.js',
'chartjs': __dirname + '/node_modules/chart.js/dist/Chart.js',
'bootstrap-fileinput': __dirname + '/node_modules/bootstrap-fileinput/js/fileinput.js',
'vue-router': __dirname + '/node_modules/vue-router/dist/vue-router.js',
'vue-resource': __dirname + '/node_modules/vue-resource/dist/vue-resource.js',
'vuex': __dirname + '/node_modules/vuex/dist/vuex.js',
'progressbar': __dirname + '/node_modules/progressbar.js/dist/progressbar.js'
}
},
module: {
loaders: [
{ test: /\.css$/, loader: "style!css" }
]
}
};