webpack.js 243 B

12345678910111213
  1. const path = require('path')
  2. module.exports = {
  3. entry: path.join(__dirname, 'src', 'comments.js'),
  4. output: {
  5. path: path.resolve(__dirname, './js'),
  6. publicPath: '/js/',
  7. filename: 'comments.js'
  8. },
  9. externals: {
  10. jquery: 'jQuery'
  11. }
  12. }