I am currently facing an issue with importing my CSS into my webpack bundle for our Angular 1 application.
Initially, everything was working fine as we bundled our application using Webpack. The HTML included the bundle and vendor scripts, additional JavaScript files were also being included, and views were copied and added.
However, we have encountered a problem when trying to include a CSS file from our styles folder. While it seems that the CSS file is processed by the css-loader, the style-loader does not actually include the CSS file in the <style>
tag.
Would appreciate any hints or suggestions on how to resolve this issue.
Below is an excerpt from my webpack.config:
// Your webpack config code goes here
My index.html looks like this:
// Your index.html code goes here
This is the content of my index.js file:
// Your index.js code goes here
The CSS in the /styles/main folder contains the following:
// Your CSS code goes here
And finally, the example view is:
// Your example view code goes here
Here is an overview of my package.json:
// Your package.json content goes here