problem description
css-loader "s npm package Link transfer introduces a sentence that goes like this:
The css-loader interprets @ import and url () like import/require () and will resolve them.Direct translation of
this sentence: css-loader explains @ import and url () in the same way that import and require introduced.
question
(1) I don"t quite understand this sentence. What do you mean by explaining @ import and url like import/require ()?
(2) seeing some people on the Internet say that the function of css-loader is to make css can be modularized by webpack, then css-loader should not find the statement that introduces css into the js file and parse it?
(3) if nothing but import or require is introduced, how can you interpret @ import and url () "like import/require ()"
(4) "explain @ import and url ()", referring to the resolution of @ import or img/background-image "s url in the css file of import or require?
mainly does not understand the description of this sentence. Although it can be configured, it always cannot understand the principle of css-loader