Create presets for SASS and LESS #20
Comments
@eliperelman I'm creating SASS one. After finishing it and it is ok, could I transfer ownership to this organisation? |
@sotayamashita if you would like the SASS preset to live with Neutrino, it would need to be placed in |
@eliperelman I could do that. After creating it, I'll share the repo and please review this. |
Absolutely! |
Hey @sotayamashita! I couldn't find the preset you were about to created, so I published it myself. |
@kopacki Sorry, I have not published my code yet because I am busy. I appreciate your work. I will create PR for your commit. 👍 I will implement for less. |
I must say I have huge problem to add So far I've done following: const ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = function({ config }) {
config
.plugin('extractCss')
.use(ExtractTextPlugin, {
filename: 'style.css',
disable: false,
allChunks: true
});
const styleRule = config.module
.rule('scss');
ExtractTextPlugin
.extract({
fallback: 'style-loader',
use: ['css-loader', 'sass-loader']
})
.forEach(({ loader, options }, index) => styleRule.loader(index, loader, options));
} But it causes compilation errors I haven't resolved yet. |
Depending on v5 release date I think it could be a neutrino-middleware-sass. |
FWIW, I created a PostCSS base preset. PostCSS supports parsing LESS/SASS/Stylus/SugarSS so I guess you can build on top of it. https://github.com/barraponto/neutrino-preset-postcss |
@kopacki reviewing your preset, the only issue i see is you don't really need to require |
I've been able to get Guess we should move that discussion to a new issue in |
@eirikurn agreed, if you think there are some changes we should make to webpack-chain to make this use case easier, let's see if we can find a solution! |
Closing, as this issue seems to be mostly handled by the community. We will pick up the webpack-chain features on that repo. |
@eliperelman I'm using CRA at the moment, but I am not very happy with it because SASS/SCSS support is only possible with workarounds. I was following this ticket to learn how to use SCSS with neutrino (or to be informed when it will be possible), but now you closed with referencing to "the community". Do you have a link or pointers on how to enable SCSS with neutrino? |
@jnachtigall the postcss preset is basically just this: https://github.com/barraponto/neutrino-preset-postcss/blob/master/src/index.js If you change |
Hi, is there any news about a sass-preset? Here's what I get with neutrino-sass-preset:
Thanks |
@seblambla are you asking for a sass-preset or reporting an issue against a sass-preset? |
I'm reporting an issue about this sass-preset but I don't know if this preset is stable as it's not mentioned in the doc's community packages section. If it's unstable I'll try to make my own preset from the postcss preset you mentioned above.
|
@seblambla consider opening issues in the sass preset issue queue, as it might get noticed by the authors. |
@seblambla I created a PR for this. |
@kopacki Could you publish the new changes to npm? |
No description provided.
The text was updated successfully, but these errors were encountered: