-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
executable file
·34 lines (32 loc) · 1.04 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
const elixir = require( "coldbox-elixir" );
const webpack = require( "webpack" );
elixir.config.mergeConfig({
plugins: [
// globally scoped items which need to be available in all templates
new webpack.ProvidePlugin({
$ : "jquery",
jQuery : "jquery",
"window.jQuery": "jquery",
"window.$" : "jquery",
"Vue" : ["vue/dist/vue.esm.js", "default"],
"window.Vue" : ["vue/dist/vue.esm.js", "default"]
})
]
});
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your ColdBox application. By default, we are compiling the Sass
| file for our application, as well as publishing vendor resources.
|
*/
module.exports = elixir( function( mix ) {
mix
// Mix App styles
.sass( "app.scss" )
// Mix JS and VueJS components
.vue( "app.js" );
} );