Closed ls-cd closed 7 years ago
Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server, gitter or StackOverflow.
"browserslist": [
"> 1%",
"last 2 versions",
"ie >= 9"
]
@posva Hi,prosva!I'm sure this issue is a bug.Follow each step below can reappear this bug.
vue init webpack test-bug
create a new projectnpm install
to install dependencies.test_bug {
-webkit-transform: translateY(-24px);
-ms-transform: translate(-3px, -27px) !important;
transform: translateY(-24px);
}
npm run build
to package project.If finish, find the generated css file under the path 'dist/static/css',U can see it below:
#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;margin-top:60px}.test_bug{-webkit-transform:translateY(-24px);transform:translateY(-24px)}h1[data-v-355d633c],h2[data-v-355d633c]{font-weight:400}ul[data-v-355d633c]{list-style-type:none;padding:0}li[data-v-355d633c]{display:inline-block;margin:0 10px}a[data-v-355d633c]{color:#42b983}
Style "-ms-transform" disappeared in the css file which generated by command npm run build
.I will list the compressed css snippet below.
.test_bug{-webkit-transform:translateY(-24px);transform:translateY(-24px)}
I have tested this scene several times just now,this bug reappear every time.
The webpack version is ^2.6.1
.
I have the same problem(vue:v2.5.2,webpack:v3.6.0),have you resolved it? @ls-cd
I have no idea to resolve it, but I think u can set the style manually in your code if the browser is IE @kerwin1
I have wrote a component like below:
There is a class selector which named 'navbar_right span i', I must use '-webkit-transform' to compatible with IE9 in the selector. With surprise, after package my project use command 'npm run build', I find the style '-ms-transform' was lost. U can find the packaged javascript snippet like below:
U can compare the snippet with the original class selector '.navbar_right span i'.The style '-ms-transform' was lost.I want to know how to solve this bug, is there some solutions? I will list my 'package.json' below, the webpack version is 2.6.1 :