You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
715 B

5 years ago
  1. const mix = require('laravel-mix');
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Mix Asset Management
  5. |--------------------------------------------------------------------------
  6. |
  7. | Mix provides a clean, fluent API for defining some Webpack build steps
  8. | for your Laravel application. By default, we are compiling the Sass
  9. | file for the application as well as bundling up all the JS files.
  10. |
  11. */
  12. mix.webpackConfig({
  13. module: {
  14. rules: [{
  15. test: /\.riot$/,
  16. exclude: /node_modules/,
  17. use: [{
  18. loader: '@riotjs/webpack-loader',
  19. query: {
  20. hot: false
  21. }
  22. }]
  23. }
  24. ]}
  25. });
  26. mix.js('demo-386.js', 'dist/js')
  27. mix.sass('demo-386.scss', 'dist/css');