Skip to content

样式文件 线上打包的时候被丢掉了 #3580

@cleverboy32

Description

@cleverboy32

Version

3.2.1

Environment info

mac

Steps to reproduce

vue.config.js 中的把 css 配置成可提取了

css: {
        extract: true,
        modules: false
    }

在 development 下运行是可以 提取出我 vue 中的 less 样式的
但是当我 build 的时候, 我的 vue 中的样式全都丢掉了。
我builde 的时候设置 NODE_ENV='development' 样式也是存在的。

What is expected?

所以样式被提取出来

What is actually happening?

vue 中的样式被丢失


测试环境下,我能有组件包样式,自己写的页面样式两个文件, 线上打包后的样式文件只剩下了引入的组件包的样式文件

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproductionThis issue is missing a minimal runnable reproduction, provided by the author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions