elegantweb / nwjs-vue

A clean NW.js & Vue.js quick start boilerplate.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SCSS Global File Support

mochi-co opened this issue · comments

commented

Took a while to figure this out, but I was able to add a global scss file to the project by altering the following lines in build/utils.js:

sass: generateLoaders('sass', { indentedSyntax: true, data: '@import "@/assets/css/main.scss";' }),

scss: generateLoaders('sass', { data: '@import "@/assets/css/main.scss";' }),

Not sure this is even the best way to do it, but I leave it here for anyone else who might be trying to figure it out.