This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.
Enhancement: Allow for multiple entries in our webpack config #238
Closed
Description
Short description of the problem:
In webpack 1 & 2 you could just specify multiple entry points to be processed like this:
entry: {
'polyfills': './src/polyfills.browser.ts',
'vendor': './src/vendor.browser.ts',
'main': './src/main.dev.ts'
},
However the output with ionic-app-scripts@beta
is the following:
What behavior are you expecting?
I expect webpack to let me specify multiple entry points and produce multiple output files.
Steps to reproduce:
- Create new project as
ionic start buildTest sidemenu --v2 --ts
with[email protected]
cli installed. - Update to
@ionic/[email protected]
for webpack support. - Copy the webpack basic config with command
mkdir config && cp node_modules/@ionic/app-scripts/config/webpack.config.js config/
. - Add webpack config to package.json config as specified here: ionic-app-scripts#npm-config ionic-app-scripts#overriding-config-files
- Edit
config/webpack.config.js
entry property to the presumably equivalent one like this:
entry: {
'main': getEntryPoint()
},
Which @ionic/app-scripts version are you using?
Using @ionic/[email protected]
with custom webpack config.