webpack.config.js 375 B

123456789101112131415161718192021
  1. const path = require('path')
  2. module.exports = {
  3. entry: path.join(__dirname, '../src/index'),
  4. output: {
  5. path: path.join(__dirname, '../dist'),
  6. filename: 'weapp-adapter.js',
  7. },
  8. module: {
  9. loaders: [
  10. {
  11. test: /\.js$/,
  12. exclude: /node_modules/,
  13. loaders: [
  14. 'babel',
  15. 'eslint-loader'
  16. ]
  17. }
  18. ]
  19. }
  20. }