forked from goldcoders-corp/vuetified
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
48 lines (44 loc) · 1.63 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
let mix = require('laravel-mix')
/* Allow Us To Compile Stylus in app.js */
mix.webpackConfig({
module: {
rules: [
{
test: /\.styl$/,
loader: ['style-loader', 'css-loader', 'stylus-loader']
}
]
},
resolve:{
/* Path Shortcuts */
alias:{
/* root */
'~': path.resolve(__dirname, 'resources/assets/js'),
Components: path.resolve(__dirname, 'resources/assets/js/components'),
Routes: path.resolve(__dirname, 'resources/assets/js/routes'),
Pages: path.resolve(__dirname, 'resources/assets/js/pages'),
/* vuex modules */
Modules: path.resolve(__dirname, 'resources/assets/js/modules'),
Layouts: path.resolve(__dirname, 'resources/assets/js/layouts'),
Partials: path.resolve(__dirname, 'resources/assets/js/partials'),
Services: path.resolve(__dirname, 'resources/assets/js/services'),
Api: path.resolve(__dirname, 'resources/assets/js/api'),
Mixins: path.resolve(__dirname, 'resources/assets/js/mixins'),
/* Jquery Plugins */
Plugins: path.resolve(__dirname, 'resources/assets/js/plugins')
}
}
})
mix.js('resources/assets/js/app.js', 'public/js')
mix.sass('resources/assets/sass/app.scss', 'public/css')
mix.sourceMaps()
if (mix.inProduction()) {
/* extract all vendor */
//! This Will Cause Error if You Are running 'npm run test'
//! Only Use This For Production
mix.extract([
'axios', 'vue', 'vuetify'
])
mix.version()
mix.disableNotifications()
}