Skip to content

Instantly share code, notes, and snippets.

@jjab2020
Created October 11, 2019 02:37
Show Gist options
  • Save jjab2020/2087d4d066cb5b6bc2308e30167a53da to your computer and use it in GitHub Desktop.
Save jjab2020/2087d4d066cb5b6bc2308e30167a53da to your computer and use it in GitHub Desktop.
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