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.

36 lines
925 B

3 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 your application, as well as bundling up your 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. options: {
  20. hot: false
  21. }
  22. }]
  23. }]
  24. }
  25. })
  26. mix.js('src/demo/demo.js', 'demo')
  27. .sass('src/demo/demo.scss', 'demo')
  28. .options({
  29. terser: {
  30. extractComments: false,
  31. },
  32. processCssUrls: false
  33. })