Skip to content

Style in vue files is ignored when sideEffects: false is defined in package.json #718

Open
@posva

Description

@posva

Bug report

Version

0.14.0

Steps to reproduce

Create a vue component in .vuepress/components

<template>
  <p class="red">Should be red</p>
</template>

<style scoped>
.red {
  color: red
}
</style>

Add "sideEffects": false to package.json file

The scoped attribute doesn't have an impact

What is expected?

When runnig the build, the css should be extracted in a CSS file

What is actually happening?

The CSS is dropped at some point, but it works correctly under dev

Other relevant information

  • Your OS: latest osx
  • Node.js version: 10
  • Browser version: Chrome
  • Is this a global or local install? local
  • Which package manager did you use for the install? yarn

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions