I am currently in the process of setting up a Vue project with webpack 4 enabled using the Microsoft SPA templates dotnet core as the base. Everything seems to be working fine, except for the fact that external CSS files are not loading into the project. I have been trying to figure out why these CSS files are not being loaded for quite some time.
Initially, I used 'dotnet new vue' (make sure you have the Microsoft SPA templates installed) and upon project creation, I began updating the packages. Here is my current package.json file:
{
"name": "Dashboard",
"private": true,
"version": "0.0.1",
"scripts": {
"build:development": "webpack"
},
"devDependencies": {
...
},
"dependencies": {}
}
Here is my webpack.config.file:
const path = require('path');
const webpack = require('webpack');
...
module.exports = {
...
};
I have tried including the CSS file in various ways such as in app.ts and boot.ts, but the CSS file is still not being utilized in the frontend. I have also experimented with different approaches in the webpack.config file including using the extract-text-webpack-plugin.
The main objective is to upgrade the old versions of packages being used in the Microsoft SPA template to the latest versions as it is currently based on Webpack 2.
If anyone has any suggestions or solutions, I would greatly appreciate the help. Thank you! :-)