webpack.config.js 313 B

1234567891011121314151617
  1. const path = require('path')
  2. module.exports = {
  3. //entry
  4. entry: './src/index.js',
  5. //output
  6. output: {
  7. filename: 'vuepouch.js',
  8. path: path.resolve(__dirname, 'dist')
  9. },
  10. //trasnformations
  11. module: {
  12. rules: [
  13. { test: /\.js$/, exclude: /node_modules/, loader: "babel-loader"}
  14. ]
  15. }
  16. }