You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

webpack.js 428B

12345678910111213141516171819202122
  1. const path = require('path');
  2. module.exports = {
  3. entry: path.join(__dirname, 'src', 'workflowengine.js'),
  4. output: {
  5. path: path.resolve(__dirname, './js'),
  6. publicPath: '/js/',
  7. filename: 'workflowengine.js',
  8. },
  9. module: {
  10. rules: [
  11. {
  12. test: /\.handlebars/,
  13. loader: "handlebars-loader",
  14. query: {
  15. extensions: '.handlebars',
  16. helperDirs: path.join(__dirname, 'src/hbs_helpers'),
  17. }
  18. }
  19. ]
  20. }
  21. }