I’ve started to play around with rollupjs and can’t seem to get it working with bootstrap-sass.
I'm getting the error when bundling -
(sass plugin) File to import not found or unreadable: bootstrap. Parent style sheet: stdin
Snippets of my code below.
I've included a rollup-plugin-sass
in my rollup.config.js
.
// index.js
import './jquery-global.js'
import 'bootstrap-sass'
import './style.scss'
// jquery-global.js
import jquery from 'jquery'
window.jQuery = jquery
// style.scss
@import url('https://fonts.googleapis.com/css?family=Open+Sans');
@import 'bootstrap';
body {
font-family: 'Open Sans', sans-serif;
}