webpack.config.js 411 B

123456789101112131415161718192021222324
  1. var Path = require('path');
  2. var Webpack = require('webpack');
  3. module.exports = {
  4. mode: 'production',
  5. // devtool: false,
  6. entry: {
  7. index : Path.resolve(__dirname, './index.js')
  8. },
  9. output: {
  10. path: Path.resolve(__dirname, './'),
  11. filename: '[name].dist.js',
  12. },
  13. module: {
  14. rules: [
  15. ]
  16. },
  17. stats: {
  18. colors: true,
  19. },
  20. plugins: [
  21. new Webpack.SourceMapDevToolPlugin()
  22. ]
  23. };