forked from coldbox-templates/DEPRECATED-elixir
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
50 lines (45 loc) · 1.42 KB
/
webpack.config.js
File metadata and controls
50 lines (45 loc) · 1.42 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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" )
.js(
[
"node_modules/jquery/dist/jquery.min.js",
"node_modules/bootstrap/dist/js/bootstrap.min.js",
"node_modules/@fortawesome/fontawesome-free/js/fontawesome",
"node_modules/@fortawesome/fontawesome-free/js/solid",
"node_modules/@fortawesome/fontawesome-free/js/regular",
"node_modules/@fortawesome/fontawesome-free/js/brands"
],
{
name : "vendor.min",
entryDirectory : ""
}
);
} );