Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

node-sass property 'data' overwrites component styles #93

Closed
@holgerw

Description

@holgerw

Node-sass has a 'data' property that could be used to prepend common statements into sass scopes. This would be very useful to import common sass, like variables, in every component.
But setting the 'data' property, actually overwrites the components styles.

Expected behavior

vue({  scss: {    includePaths: ['./src/styles'],    data: '@import "_variables";'  }})

should import shared variables into the styles of every component with lang="scss", prepending the content of the 'data' property to the component's style code.

Actual behavior

The content of the 'data' property overwrites the styles of every component with lang="scss".

Why is it important

The expected behavior would be a very dry way to maintain common Sass code, relevant for every component, like variables and mixins.

The 'data' property seems to work as expected with webpack, as discussed herevuejs-templates/webpack#149

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp