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

Plugin API - CSS Preprocessors #6

Closed
insin opened this issue Dec 3, 2015 · 1 comment
Closed

Plugin API - CSS Preprocessors #6

insin opened this issue Dec 3, 2015 · 1 comment

Comments

@insin
Copy link
Owner

insin commented Dec 3, 2015

How much magic do we really want here?

Thinking about CSS preprocessors, It would be nice if you could just install an nwb-sass, nwb-less etc. package which would hook these up with default pipelines for static and server builds like CSS currently has. So a bit of package.json scanning for those.

All they really need to provide is a unique name and test and loader config (absolute path to a dependency owned by the plugin). What if this was the entire nwb-sass plugin?

module.exports = {
  cssPreprocessor: {
    sass: {
      test: /\.scss$/,
      loader: require.resolve('sass-loader')
    }
  }
}

We could potentially use whatever hook we add for this to allow the user to configure and manage their own preprocessor dependencies.

@insin insin modified the milestone: 0.2 Dec 3, 2015
@insin insin modified the milestones: 0.2, 0.3 Dec 4, 2015
@insin insin closed this as completed Dec 7, 2015
@45010363-koki
Copy link

#564

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