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.

32 lines
723 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 applications. By default, we are compiling the CSS
  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. use: [{
  17. loader: '@riotjs/webpack-loader'
  18. }]
  19. }
  20. ]}
  21. })
  22. mix
  23. .js('src/client/index.js', 'public')
  24. .options({
  25. terser: {
  26. extractComments: false,
  27. }
  28. })