Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple entry points #71

Open
arichter83 opened this issue May 30, 2019 · 0 comments
Open

Multiple entry points #71

arichter83 opened this issue May 30, 2019 · 0 comments

Comments

@arichter83
Copy link

I get this error:

W20190530-11:41:01.327(2)? (STDERR) TypeError: singleWebpackConfig.entry[key].push is not a function
W20190530-11:41:01.327(2)? (STDERR)     at arrangeConfig (packages/ardatan_webpack-dev-middleware.js:242:48)

For this config:

let clientConfig = {
    entry: {
        main: './client/main.tsx',
        widget: './client/widget.tsx'
    },
    ...
}

Can be fixed by:

let clientConfig = {
    entry: {
        main: ['./client/main.tsx'],
        widget: ['./client/widget.tsx']
    },
    ...
}

I will create a PR to fix it.

arichter83 added a commit to arichter83/meteor-webpack that referenced this issue May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant