daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const themePath = path.resolve(__dirname, 'theme');
  2. const publicPath = "assets";
  3. const outputFolder = path.resolve(__dirname, 'www/media/' + publicPath);
  4.  
  5. var frontendEntries = {
  6.     'frontend/layouts/main': './entries/frontend/layouts/main.js',
  7.     'frontend/index': './entries/frontend/index.js',
  8. };
  9. var adminEntries = {'admin/layouts/main': './entries/admin/layouts/main.js',};
  10.  
  11. // plugins
  12.         new CommonsChunkPlugin({
  13.             name: "admin/common",
  14.             chunks: Object.keys(adminEntries)
  15.         }),
  16.         new CommonsChunkPlugin({
  17.             name: "frontend/common",
  18.             chunks: Object.keys(frontendEntries)
  19.         }),
RAW Paste Data
Top