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

FR: Expose all default loaders.options to config #169

Closed
matsp opened this issue Apr 20, 2018 · 6 comments
Closed

FR: Expose all default loaders.options to config #169

matsp opened this issue Apr 20, 2018 · 6 comments
Labels
type: feature request Request to add a new feature

Comments

@matsp
Copy link

matsp commented Apr 20, 2018

It would be nice to configure all default loaders e.g. sass-loader with vuepress config file. I would prefer the way that is implemented for the postcss-loader. It's easier than configure webpack through vuepress config file.

@ulivz
Copy link
Member

ulivz commented Apr 20, 2018

sassscssstylus and less have been configured internally and use postcss-loader by default so that if you want to use them at your project, you only need to install the corresponding dependencies.

For pre-processors that do not have built-in webpack config support, you will need to extend the internal webpack config.

@matsp
Copy link
Author

matsp commented Apr 20, 2018

That's okay. But I need to adapt the sass-loader e.g. the includePaths .

@ulivz
Copy link
Member

ulivz commented Apr 20, 2018

Cool, I thought about this before. someone may need this feature.

@ulivz
Copy link
Member

ulivz commented Apr 20, 2018

Fixed at #178

@matsp
Copy link
Author

matsp commented Apr 20, 2018

Thanks!

@matsp
Copy link
Author

matsp commented Apr 24, 2018

Setting the following has no effect for me:

scss: {
  includePaths: [nodeModules]
}

@ulivz I transfered this from my own webpack config. nodeModules will be absolute resolved. Anything Iam not thinking off?

BTW Iam trying to import a style.scss file in enhanceApp.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request Request to add a new feature
Projects
None yet
Development

No branches or pull requests

2 participants