Skip to content

Instantly share code, notes, and snippets.

@siljanoskam
Created April 25, 2020 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siljanoskam/6c2efd2dcf75a76d4f47f57428ef5426 to your computer and use it in GitHub Desktop.
Save siljanoskam/6c2efd2dcf75a76d4f47f57428ef5426 to your computer and use it in GitHub Desktop.
Webpack file
const mix = require('laravel-mix');
mix.sass('resources/sass/app.scss', 'public/css');
mix.react('resources/js/app.js', 'public/js');
if (mix.inProduction()) {
mix.disableNotifications();
mix.version();
return;
}
mix.webpackConfig({
devtool: 'source-map',
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment