]> cat aescling's git repositories - mastodon.git/commitdiff
Exclude packs/custom.js from webpack compilation to prevent breakage (#3719)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 13 Jun 2017 01:55:36 +0000 (03:55 +0200)
committerGitHub <noreply@github.com>
Tue, 13 Jun 2017 01:55:36 +0000 (03:55 +0200)
due to the change in #3373

config/webpack/shared.js

index 8fd80a00d5c41f906e78a6c14e46ad5dd80768b7..de57ecb68e25558c123111822e75ae08a60d3333 100644 (file)
@@ -12,7 +12,7 @@ const localePackPaths = require('./generateLocalePacks');
 
 const extensionGlob = `**/*{${paths.extensions.join(',')}}*`;
 const packPaths = sync(join(paths.source, paths.entry, extensionGlob));
-const entryPacks = [].concat(packPaths).concat(localePackPaths);
+const entryPacks = [].concat(packPaths).concat(localePackPaths).filter(path => path !== join(paths.source, paths.entry, 'custom.js'));
 
 const customApplicationStyle = resolve(join(paths.source, 'styles/custom.scss'));
 const originalApplicationStyle = resolve(join(paths.source, 'styles/application.scss'));