Created
October 11, 2019 02:37
-
-
Save jjab2020/2087d4d066cb5b6bc2308e30167a53da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mix = require('laravel-mix'); | |
let webpack = require('webpack'); | |
/* | |
|-------------------------------------------------------------------------- | |
| 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 your application, as well as bundling up your JS files. | |
| | |
*/ | |
mix.webpackConfig({ | |
plugins: [ | |
new webpack.ProvidePlugin({ | |
'$': 'jquery', | |
'jQuery': 'jquery', | |
'window.jQuery': 'jquery', | |
}), | |
] | |
}); | |
mix.js('./src/app.js', './dist/').sass('./src/app.scss', './dist/'); | |
mix.setResourceRoot('../'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment