0

I'm using this guide : http://vuetips.com/bootstrap

on top of the vue-cli scaffolding

and I'm going the sass route.

but beyond the npm install I'm having no luck :

import Vue from 'vue' import App from './App' import router from './router' import NavBar from './components/navbar/NavBar.vue' require('../node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss') Vue.component('NavBar', NavBar) Vue.config.productionTip = false /* eslint-disable no-new */ new Vue({ el: '#app', router, template: '<App/>', components: { App } }) new Vue({ el: '#NavBar', template: '<NavBar/>' }) 

enter image description here

i tried editing the path with an extra ../ in case it was one folder higher but no cigar. I've checked in the pointed folder and the file is indeed there.

1 Answer 1

1

Try using:

require('bootstrap-sass/assets/stylesheets/_bootstrap.scss') 

Webpack already resolves to the node_modules directory.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.