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

Replace webpack with Parcel-Bundler? #847

Closed
pke opened this issue Feb 28, 2018 · 4 comments
Closed

Replace webpack with Parcel-Bundler? #847

pke opened this issue Feb 28, 2018 · 4 comments
Labels

Comments

@pke
Copy link

pke commented Feb 28, 2018

Have you taken a look at ParcelJS. It is much easier to setup than webpack, faster in compiling, produces smaller bundles and supports hot-reloading.
With the insight how webpack is used in styleguidist, do you think a switch of the bundler would be possible?

@KnisterPeter
Copy link
Contributor

I think it would be way better and easier to move to webpack 4.
Its fast as well, has zero config too and will need less transition.

@pke
Copy link
Author

pke commented Feb 28, 2018

Aha. Didn't know there is a webpack 4 already :) Can it do proper tree shaking now finally?

@pke pke closed this as completed Mar 1, 2018
@pke
Copy link
Author

pke commented Jan 17, 2020

Everytime I come back to setup react component documentation with my favorite style guide tool I long for parcel support.
My projects almost never use webpack for over 2 years now, cause its "zero-configuration" is still mostly a myth, even with v4.

Parcel truly shines in this aspect and I wish react-styleguidist would support it. At the moment I install webpack in a docs subfolder alongside this minimal webpack config inside styleguide.config.js

webpackConfig: {
    module: {
      rules: [
        {
          test: /\.js?$/,
          exclude: /node_modules/,
          loader: "babel-loader",
        },
        {
          test: /\.(jpg|png|svg)$/,
          use: {
            loader: "url-loader",
          },
        },
        {
          test: /\.css$/,
          use: ["css-loader"],
        },
      ],
    },

Which is not really "zero-config". Parcel supports all that by default and I really wonder @sapegin what you think about it? How difficult do you estimate is a switch of the bundler? Parcel also supports hot-loading and such which would be required for the interactive examples.

@pke pke reopened this Jan 17, 2020
@stale
Copy link

stale bot commented Apr 17, 2020

😴 This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week without any further activity. Consider opening a pull request if you still have this issue or want this feature.

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

No branches or pull requests

2 participants