Testing CSS imports in Webpack
Let's test importing CSS styles in a JavaScript file. Let's make a file with styles:
body {
background: red;
}
Let's import it:
import './styles.css';
Now, if after building the project we open the HTML file in the browser to which the assembly file is connected, we will see the result of our styles.
Perform the testing described. Import several CSS files.
Open the assembly file in the editor and use the search to find your CSS styles in it.
Open your browser debugger and find your CSS styles on the HTML page.