In the above file you can see the resolve config :
resolve: {
extensions: ['.json', '.js', '.jsx', '.css'],
alias: {
'framework': path.join(dirname, './src/scripts/framework'),
'app': path.join(dirname, './src/scripts/app'),
'game': path.join(dirname, './src/scripts/game'),
'PIXI' : path.join(dirname, './node_modules/pixi.js'),
}
I want to code splitting the bundle based on this folders, as my requirement is we will have single core bundle, we can have multiple frameworks and we will make multiple games by extending the core.
Hi Larkin,
https://raw.githubusercontent.com/madclem/pixi-game-template/master/webpack.config.js
In the above file you can see the resolve config : resolve: { extensions: ['.json', '.js', '.jsx', '.css'], alias: { 'framework': path.join(dirname, './src/scripts/framework'), 'app': path.join(dirname, './src/scripts/app'), 'game': path.join(dirname, './src/scripts/game'), 'PIXI' : path.join(dirname, './node_modules/pixi.js'), } I want to code splitting the bundle based on this folders, as my requirement is we will have single core bundle, we can have multiple frameworks and we will make multiple games by extending the core.
so can you please guide me on this.
Thanks for the help.