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
831 B

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