-
Notifications
You must be signed in to change notification settings - Fork 44
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
Document posibilities for webpack configuration #105
Comments
Totally agree. I have read the webpack doc and i find several options for that (one is devserver.stats = 'errors-only').
@bodograumann Can you share a sample of your vue.config.js to configure Webpack with this plugin |
Unfortunately, I haven't been using vue recently. But I am very open for any PRs. Just make one and I should be responding ASAP. |
@rdhainaut Sorry, I cannot help you there. I solved my problem, by directly configuring the path globs in the module.exports = {
plugins: {
tailwindcss: {},
"vue-cli-plugin-tailwind/purgecss": {
content: ["./public/**/*.html", "./src/**/*.@(vue|mdx)"],
},
autoprefixer: {},
},
}; |
By default vue-cli-plugin-storybook uses the vue-cli webpack config to generate a webpack config, which works fine.
Sometimes though, it is necessary to adjust this config for the storybook.
Please add some documentation on how to do that.
I know I did this before, but only from reading some hidden examples and it was a major struggle.
The particular case I am currently looking at, is using the storybook and tailwind vue-cli plugins side-by-side and modifying the path globs for purgecss during the storybook compilation to include all stories as well.
It would also be great to have some way of inspecting the generated webpack config, in order to check whether the modifications are applied correctly.
The text was updated successfully, but these errors were encountered: