Skip to content
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
@luchillo17

Description

@luchillo17

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:

image

What behavior are you expecting?

I expect webpack to let me specify multiple entry points and produce multiple output files.

Steps to reproduce:

  1. Create new project as ionic start buildTest sidemenu --v2 --ts with [email protected] cli installed.
  2. Update to @ionic/[email protected] for webpack support.
  3. Copy the webpack basic config with command mkdir config && cp node_modules/@ionic/app-scripts/config/webpack.config.js config/.
  4. Add webpack config to package.json config as specified here: ionic-app-scripts#npm-config ionic-app-scripts#overriding-config-files
  5. 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions