V
V
Vladimir Golub2019-01-09 14:15:27
webpack
Vladimir Golub, 2019-01-09 14:15:27

How to make a universal import in a js file?

In the file that is the entry point of Webpack, I import two css files.

import './../styles/style1.css';
import './../styles/style2.css';

How to import all css files?
Something like this -
import './../styles/*.css';

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2019-01-09
@RazerVG

Why not google it first?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question