Z
Z
ZHeka2021-05-10 16:23:58
css
ZHeka, 2021-05-10 16:23:58

How to replace scss and stylus files with .css (webpack)?

Good afternoon!
Large project with legacy code. It is necessary to cut .styl and .scss from the project, as well as loaders for these files.

I see the task as follows, you need to find some kind of library, which, ideally, will make from (.styl / .scss) files - .css and delete (.styl / .scss). And the key point is that this should not be put in the final bundle (of course, it will be collected there later), but the file type should be replaced in the project folders.

The loader itself is afraid of something not very easy to write. Who faced? I know that it is definitely possible to add files, I'm not sure about deleting.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ravil, 2021-05-14
@tuychin

For such tasks it is better to use task runners
https://github.com/gruntjs/grunt-contrib-sass

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question