I am working on a Vue JS app (version 2.5.17) using the webpack-simple project time, and I am trying to load a static css file in my main App component.
I have the file in:
src/static/reset.css
Then in my main app component template:
<link rel="stylesheet" type="text/css" href="/static/reset.css">
I am serving using npm run dev
However the CSS file returns a 404 error, and I can confirm by trying to access: http://localhost:8080/static/reset.css
My directory structure:
C:.
| .babelrc
| index.html
| output.doc
| package-lock.json
| package.json
| README.md
| webpack.config.js
|
\---src
| App.vue
| main.js
| routes.js
|
+---assets
| | logo.png
| |
| \---css
+---components
| | Home.vue
+---static
| reset.css
|
\---store
| store.js
|
\---modules
recipe.js