Guest User

Untitled

a guest
Mar 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. var HtmlWebpackPluginArray = [new HtmlWebpackPlugin({
  2. title: "TV Grid_1---",
  3. template: APP_DIR + '/index.template.ejs',
  4. filename: "grid_1.html",
  5. minify: {
  6. collapseWhitespace: true,
  7. removeComments: true,
  8. removeRedundantAttributes: true,
  9. removeScriptTypeAttributes: true,
  10. removeStyleLinkTypeAttributes: true
  11. }
  12. }), new HtmlWebpackPlugin({
  13. title: "TV Grid_2---",
  14. template: APP_DIR + '/index.template.ejs',
  15. filename: "grid_2.html",
  16. minify: {
  17. collapseWhitespace: true,
  18. removeComments: true,
  19. removeRedundantAttributes: true,
  20. removeScriptTypeAttributes: true,
  21. removeStyleLinkTypeAttributes: true
  22. }
  23. })];
  24.  
  25. plugins: [
  26. new CleanWebpackPlugin(DIST_PATH),
  27. new ExtractTextPlugin({
  28. filename: 'styles.[chunkhash].css',
  29. // disable: false,
  30. allChunks: true
  31. }),
  32. // new webpack.HashedModuleIdsPlugin(),
  33. new webpack.optimize.CommonsChunkPlugin({
  34. name: 'vendor',
  35. filename: 'vendor.[chunkhash].js'
  36. }),
  37. new webpack.optimize.CommonsChunkPlugin({
  38. name: 'manifest'
  39. }),
  40. new webpack.ProvidePlugin({
  41. $: "jquery",
  42. jQuery: "jquery"
  43. }),
  44. HtmlWebpackPluginArray,
  45. ]
  46.  
  47. TypeError: arguments[i].apply is not a function
Add Comment
Please, Sign In to add comment