Skip to content

.vuepress/style.styl does not take effect in the production environment #977

@xnng

Description

@xnng
  • I confirm that this is a issue rather than a question.

Bug report

.vuepress/style.styl can not use in production enviroment,but in development enviroment is available

when I vuepress

Version

0.14.4

Steps to reproduce

I want to override some of the styles. I created .vuepress/style.styl and it took effect after I vuepress dev it, but it didn't take effect after I vuepress build it.

I tried both on windows and CentOS, and they all had the same effect.

Do I need additional configuration to add this file? I didn't see it in the document.

What is expected?

I hope than .vuepress/style.styl can use in dev and prod enviroment。

This is my css:

image

This is dev:

image

This is prod:

image

I found a way to solve my problem,add !important like this :

image

What is actually happening?

After I build it, .vuepress/style.styl didn't work.

Other relevant information

  • Your OS: Win 10 1803 and CentOS7
  • Node.js version: 10.13.0
  • Browser version: 70.0.3538.77
  • Is this a global or local install? I've tried all of it
  • Which package manager did you use for the install? yarn

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