-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
My style bindings are disappearing after production build #53
Comments
So... I disabled the extract-text-webpack-plugin and now it's working. |
I have the same issue if build on Debian (build config works fine on OSX and Windows). |
Sounds like it is possibly related. @esahione @Astray-git I'd open an issue in extract-text-webpack-plugin detailing your issue. If you find a solution to your problem, please let us know back here! |
I'm pretty convinced this is indeed the same issue as #41, so closing as duplicate for now. |
Well, in my situation, the problem is not related to extract-text-webpack-plugin. I find out the |
@Astray-git what exactly is being removed? Example? Repro? |
code: <th
:style="[
column.styles,
{ width: column.width }
]"> build without <th :style="[\n column.styles,\n { width: column.width }\n ]"> build with <th :style=""> |
@Astray-git I unfortunately wasn't able to reproduce the problem with that example. 😕 Could you link to an example project demonstrating the issue? |
@chrisvfritz Try this hello.vue . |
@Astray-git Thanks for the link! That helped a lot. 😃 From the Vue docs:
That means column: {
width: '10px',
styles: {
textAlign: 'center'
}
} Is your issue resolved after making that change? |
@chrisvfritz Sorry, that's a mistake in my test code. |
This seems like an |
My style bindings are not working after I build the code for production (I'm using the Webpack skeleton initially generated by vue-cli).
The code is for a simple parallax component - you can find it here: https://gist.github.com/esahione/6a7dc75f1dec971c4c06
Here's my Webpack production config file: https://gist.github.com/esahione/c8d75d51ff7e59b10d5a
And here's the Webpack development configuration file: https://gist.github.com/esahione/c305121816040f849547
The code should be self explanatory. It works flawlessly on development, but when I try to build it for production it stops working. In fact, when I look at the code through the browser there is no style tag.
Is this a bug? How can I fix it?
The text was updated successfully, but these errors were encountered: