-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
53 lines (47 loc) · 1.72 KB
/
webpack.mix.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
const { mix } = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.js('resources/assets/main.js', 'public/js');
mix.sass('resources/assets/app.scss', 'public/css').version();
// 'resources/assets/css/xenon.css',
mix.combine([
'resources/assets/css/custom.css',
'resources/assets/css/xenon-components.css',
'resources/assets/css/xenon-core.css',
'resources/assets/css/xenon-forms.css',
'resources/assets/css/xenon-skins.css',
'node_modules/sweetalert2/dist/sweetalert2.min.css',
],'public/css/all.css').version();
mix.combine([
'resources/assets/js/joinable.js',
'resources/assets/js/resizeable.js',
'resources/assets/js/TweenMax.min.js',
'resources/assets/js/TweenLite.min.js',
'resources/assets/js/xenon-api.js',
'resources/assets/js/xenon-custom.js',
'resources/assets/js/xenon-toggles.js'
],'public/js/all.js').version();
//自定义模块配置
mix.webpackConfig({
resolve: {
alias: {
components: path.resolve(__dirname, 'resources/assets/components/'),
js: path.resolve(__dirname, 'resources/assets/js/'),
css: path.resolve(__dirname, 'resources/assets/css/'),
},
modules: [
path.resolve(__dirname, 'resources/assets/components/'),
path.resolve(__dirname, 'resources/assets/js/'),
path.resolve(__dirname, 'resources/assets/css/'),
"node_modules"
]
}
});