vuejs / vue-component-compiler

Compile a single file Vue component into a CommonJS module.
MIT License
343 stars 52 forks source link

Ability to specify includePath for sass compiler #21

Closed Morgul closed 7 years ago

Morgul commented 8 years ago

I'm building a site that uses Bootstrap 4, and I compile Bootstrap's sass into my application. That works fine. However, if I'm writing a component that needs to import, say, the bootstrap varaibles.scss file, It doesn't work because the vue-component-compiler doesn't know about the import path.

What would be perfect would be a way to pass options to any of the compilers; this would give complete flexibility.

yyx990803 commented 8 years ago

You can overwrite the default sass compile function with a custom one. On Wed, Oct 14, 2015 at 2:41 PM Christopher S. Case < notifications@github.com> wrote:

I'm building a site that uses Bootstrap 4, and I compile Bootstrap's sass into my application. That works fine. However, if I'm writing a component that needs to import, say, the bootstrap varaibles.scss file, It doesn't work because the vue-component-compiler doesn't know about the import path.

What would be perfect would be a way to pass options to any of the compilers; this would give complete flexibility.

— Reply to this email directly or view it on GitHub https://github.com/vuejs/vue-component-compiler/issues/21.

Morgul commented 8 years ago

Ok, for now, that works, but it'd be nice if support was added to pass options.