J
J
jTavez2019-11-13 00:43:18
css
jTavez, 2019-11-13 00:43:18

How to correctly include module styles in Webpack?

Hello. How to correctly connect module styles, if you need to change these styles. My first thought was to just copy the stylesheet to src/sass/ of the project and then edit it, is that right?
On the example of the tingle.js plugin webpack.conf.js

plugins:  [
    new webpack.ProvidePlugin({
        tingle: 'tingle.js',
    })
]

index.js Everything works, but what if we need to change the styles in tingle.css?
import 'tingle.js/dist/tingle.css';

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Dozmorov, 2019-11-13
@jTavez

If you need to change a lot, then you can create a vendor folder in the sources, where to put such files.
If you need to make a few changes, then you can simply change the class names by creating your own file and including it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question