Skip to content

Commit

Permalink
Update the webpack mix example
Browse files Browse the repository at this point in the history
  • Loading branch information
iulyanp committed May 21, 2017
1 parent bae8194 commit 5f3a6a2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion webpack.mix.js.dist
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,22 @@ let mix = require('laravel-mix').mix;
| mix.disableNotifications();
| mix.setPublicPath('path/to/public'); <-- Useful for Node apps.
| mix.webpackConfig({}); <-- Override webpack.config.js, without editing the file directly.
|
| mix.autoload(libs);
| mix.standaloneSass(src, output, pluginOptions = {});
| mix.options(options);
| mix.copyDirectory(from, to);
*/


mix
.setPublicPath('web') // assuming that your public path is the symfony web directory
.js('app/Resources/assets/js/app.js', 'js')
.sass('app/Resources/assets/sass/app.scss', 'css');

/*
| If your app requires jQuery, you can manually add it.
|
| mix.autoload({
| jquery: ['$', 'window.jQuery', 'jQuery']
| });
*/

0 comments on commit 5f3a6a2

Please sign in to comment.