Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue Cli 3 seems to be removing styles from assets #2475

Closed
ChadTaljaardt opened this issue Sep 10, 2018 · 8 comments
Closed

Vue Cli 3 seems to be removing styles from assets #2475

ChadTaljaardt opened this issue Sep 10, 2018 · 8 comments
Labels
cannot reproduce We cannot reproduce the problem with the given information. More env information needed.

Comments

@ChadTaljaardt
Copy link

ChadTaljaardt commented Sep 10, 2018

Version

3.0.1

Reproduction link

https://github.com/ChadTaljaardt/BootstrapTest

Node and OS info

node 10.9.0 / yarn 1.9.4 / windows 7

Steps to reproduce

When you view the buttons from bootstrap, they should have a margin.

you can see a working version (without vue cli 3) here:

What is expected?

you can see a working version (without vue cli 3) here: https://jsfiddle.net/krq18pej/2/

What is actually happening?

There is no margin between the buttons.
Top version is Vue Cli 3 and bottom which is correct is the JSFiddle version
untitled22222

@funkydunc
Copy link

👍

@Justineo
Copy link
Member

See #1020.

@ChadTaljaardt
Copy link
Author

@Justineo I tried to do the suggested fix of adding this to the vue.config.js, however it didn't work.

chainWebpack: config => {
    config.module
      .rule('vue')
      .use('vue-loader')
      .loader('vue-loader')
      .tap(options => {
        options.compilerOptions.preserveWhitespace = true
        return options
      })
  }

@LinusBorg
Copy link
Member

however it didn't work

provide a reproduction, please.

@sodatea
Copy link
Member

sodatea commented Sep 10, 2018

however it didn't work

Works on my machine: https://asciinema.org/a/x0BYCcnRil3anJjL1EdQVLKoZ

@sodatea sodatea added the cannot reproduce We cannot reproduce the problem with the given information. More env information needed. label Sep 10, 2018
@ChadTaljaardt
Copy link
Author

Was able to get this working, thanks 👍

@hellomrbigshot
Copy link

@Justineo I tried to do the suggested fix of adding this to the vue.config.js, however it didn't work.

chainWebpack: config => {
    config.module
      .rule('vue')
      .use('vue-loader')
      .loader('vue-loader')
      .tap(options => {
        options.compilerOptions.preserveWhitespace = true
        return options
      })
  }

It does not work for me. But when i delete return options, it works.

@hjelperne
Copy link

hjelperne commented Dec 5, 2019

Same here: It only works after removing "return options".
Removing the " .loader('vue-loader')" part doesn't appear to make any difference either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cannot reproduce We cannot reproduce the problem with the given information. More env information needed.
Projects
None yet
Development

No branches or pull requests

7 participants