webpack.config.js 226 B

123456789101112
  1. var path = require('path');
  2. module.exports = {
  3. devtool: 'sourcemap',
  4. context: __dirname,
  5. entry: './index.js',
  6. output: {
  7. path: path.join(__dirname, '../dist/demo'),
  8. filename: 'index.js'
  9. }
  10. }