TheLarkInn / ama

Ask me anything!
https://github.com/thelarkinn/ama/issues?q=is%3Aissue+is%3Aclosed
18 stars 5 forks source link

Code-Splitting of Parent and Child modules #32

Open ssharifdev opened 4 years ago

ssharifdev commented 4 years ago

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.