webpack.config.js 371 B

1234567891011121314151617181920212223
  1. const {resolve} = require('path');
  2. const fs = require('fs');
  3. module.exports = {
  4. devtool: 'none',
  5. mode: 'production',
  6. entry: {
  7. index: [__dirname + '/lib/index.js']
  8. },
  9. output: {
  10. path: __dirname,
  11. library: 'sift',
  12. libraryTarget: 'umd',
  13. filename: 'sift.min.js'
  14. },
  15. resolve: {
  16. extensions: ['.js']
  17. },
  18. module: {
  19. rules: [
  20. ]
  21. }
  22. };