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

Add webpack3 to benchmark #3

Open
TheLarkInn opened this issue Dec 20, 2017 · 1 comment
Open

Add webpack3 to benchmark #3

TheLarkInn opened this issue Dec 20, 2017 · 1 comment

Comments

@TheLarkInn
Copy link
Owner

Should find a way to be able to run webpack 3 also. Maybe there is a way to leverage yarn aliases.

@adhrinae
Copy link

You can install another version of webpack like this.

yarn add webpack3@npm:webpack

since this process changes the symbolic link of ./node_modules/.bin/webpack, I tried to change it directly. and made another symbolic link like this.

lrwxr-xr-x  1 rinae  staff    25B Dec 21 14:03 webpack -> ../webpack/bin/webpack.js
lrwxr-xr-x  1 rinae  staff    29B Dec 21 14:02 webpack-cli -> ../webpack-cli/bin/webpack.js
lrwxr-xr-x  1 rinae  staff    26B Dec 21 14:02 webpack3 -> ../webpack3/bin/webpack.js

The problem is that webpack-cli always refer to webpack which is version 4.0.0-alpha1. so I couldn't bundle it using webpack3.

Perhaps you should create a monorepo for different kinds of benchmark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants