-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathwebpack.config.js
More file actions
36 lines (31 loc) · 1.02 KB
/
webpack.config.js
File metadata and controls
36 lines (31 loc) · 1.02 KB
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
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( mix => {
// Mix App styles
mix
.js( "App.js" )
.sass( "App.scss" );
} );