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

Fix bug: extractVueStyles not using specified file #1467

Merged
merged 1 commit into from Feb 22, 2018

Conversation

tpraxl
Copy link
Contributor

@tpraxl tpraxl commented Feb 11, 2018

Fixes #1460

Before the fix, we would recycle an existing extract plugin without assigning the custom extraction filename.
This is now fixed.

Please note that PR #1466 needs to be updated after merging this PR, because it extracted the rules into dedicated files and I doubt that git is smart enough to merge these changes.

Fixes laravel-mix#1460

Before the fix, we would recycle an existing extract plugin without assigning the custom extraction filename.
This is now fixed.
@@ -261,28 +261,28 @@ module.exports = function() {
options: Config.babel()
},

scss: vueExtractPlugin.extract({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why this didn't crash before, because vueExtractPlugin would have been undefined if Config.extractVueStyles evaluated to false…

@vyuldashev
Copy link

@JeffreyWay We confirm an issue which this pull request will resolve. Tested locally, looks good.

@JeffreyWay JeffreyWay merged commit b04f597 into laravel-mix:master Feb 22, 2018
@JeffreyWay
Copy link
Collaborator

Thanks! :)

@vyuldashev
Copy link

@JeffreyWay When will this PR be in a release?

@JeffreyWay
Copy link
Collaborator

Next week.

@vyuldashev
Copy link

@JeffreyWay ETA on this? Really waiting hard for this fix.

@JeffreyWay
Copy link
Collaborator

@vyuldashev It's now tagged in v2.1.

@ThomHurks
Copy link

@JeffreyWay This breaks unfortunately.
For me it now:

  • Suddenly creates a new CSS file called "vue-styles.css"
  • Just dumps vue-styles.css into /public/, not into /public/css/
  • I actually want it to concatenate to app.css as I use scoped CSS, so I have no conflicts anyway.
    Also insert here the usual rant about semver not being respected, etc, etc.

@JeffreyWay
Copy link
Collaborator

Yeah, confirmed. Fixing this now, and will tag.

@JeffreyWay
Copy link
Collaborator

Okay, done. Patched in 2.1.2.

@ThomHurks
Copy link

Thanks! It's back to the old situation now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

extractVueStyles adds my vue styles to the start of app.css
4 participants