This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = require('./node_modules/something-something-nda/conf/make-webpack-config')({ | |
devtool: 'eval-source-map', | |
app: true | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { withLoadable } from 'gogo-sphere-shared-components'; | |
export default { | |
name: 'App One', // Application name | |
shortName: 'App 1', | |
mobileName: 'App1', | |
path: 'app1', // Path that is being used in a router | |
redirect: 'app1/landing', | |
noAppHeader: true, // Should application have header with default breadcrumbs | |
tabNavigationOverride: false, // Tab navigation instead of sidebar, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const vendorChunkName = `${chunkName}.vendor`; | |
const appCacheGroups = { | |
//app code | |
[chunkName]: { | |
name: chunkName, | |
test: function(module) { | |
const include = !module.context || module.context.indexOf('node_modules') === -1; | |
return include; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new GenerateAssetPlugin({ | |
filename: 'index.html', | |
fn: (compilation, cb) => { | |
var appHash = compilation.hash; | |
if (options.lazyLoadable) { | |
var oldHashHtmlMatch = indexHtml.match(new RegExp(chunkName + ':"(\\w{' + appHash.length + '})"')); | |
var newIndexHtml = indexHtml.replace(oldHashHtmlMatch[1], appHash); |