config.js 624 B

123456789101112131415161718192021222324252627282930313233343536
  1. const webpack = require( 'webpack' );
  2. module.exports = {
  3. entry: './build/complete/complete.js',
  4. output: {
  5. filename: 'splide.js',
  6. environment: {
  7. arrowFunction: false,
  8. bigIntLiteral: false,
  9. const : false,
  10. destructuring: false,
  11. dynamicImport: false,
  12. forOf : false,
  13. module : false,
  14. },
  15. },
  16. module: {
  17. rules: [
  18. {
  19. test : /.js$/,
  20. loader : 'babel-loader',
  21. exclude: /node_modules/,
  22. },
  23. ],
  24. },
  25. plugins: [
  26. new webpack.BannerPlugin( {
  27. banner: require( '../banner' ),
  28. raw : true,
  29. } ),
  30. ],
  31. optimization: {
  32. minimize: false,
  33. },
  34. mode: 'production',
  35. };