I've been working on integrating the foundation.css
file into my Vue webpack application. To achieve this, I first installed foundation using:
- npm install foundation-sites
.
Then, I proceeded to install the extract text plugin with the following commands:
-- npm install extract-text-webpack-plugin
--save-dev.
However, I am now faced with uncertainty regarding the next steps in the process.
In the APP.vue file, you can find the following code snippet:
<template>
<div id="app">
<img src="./assets/logo.png">
<hello></hello>
</div>
</template>
<script>
import Hello from './components/Hello'
export default {
name: 'app',
components: {
Hello
}
}
</script>
<style>
import '../node_modules/foundation-sites/dist/foundation.css'
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
As for the Webpack.config.js configuration, it includes the following setup:
[Webpack config details here]
I added a reference to the foundation CSS file in the index.html
like so:
`<link rel="stylesheet" href="node_modules/foundation-sites/dist/foundation.css"> `
Despite trying different approaches, nothing seems to reflect when inspecting the source after deploying the app live.
An update - I encountered the following error in the terminal:
[Error details here]