Skip to content

Duplicate import problem with sass #110

@sdvcrx

Description

@sdvcrx

Hi! Thank you for the amazing vuejs!

I trying to use sass with vue, but I encountered some problems here.

For example, I have a sass file named common.sass which almost every vue files need it, so I import it on *.vue:

// app.vue, other.vue ...
<style lang="sass">
@import "common";
// ....
</style>

Then common.sass will be imported many times, which make the compiled css file very large because it has many duplicate code.

Is there a better way to do it? Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions