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 inability to use scss loader with Vue.js #89

Merged
merged 1 commit into from
Jul 12, 2017
Merged

Fix inability to use scss loader with Vue.js #89

merged 1 commit into from
Jul 12, 2017

Conversation

akerouanton
Copy link
Contributor

Prior to this fix when the less loader isn't enabled, the scss loader config is rewritten by mistake, leading to this error:

Module build failed: Error: Cannot process lang="less" inside src/js/Player.vue: the less-loader is not activated.

I also fix a functional test case for Vue.js. Actually, the tests check if the first error thrown by webpack is about missing less loader. But the fixtures needs these loaders in the following order: scss, sass and finally less. Since there's no other loader than the VueJs one loaded in this test case, errors should be in the same order.

Prior to this fix when the less loader isn't enabled, the scss loader config is rewritten by mistake, leading to this
error:

> Module build failed: Error: Cannot process lang="less" inside src/js/Player.vue: the less-loader is not activated.

I also fix a functional test case for Vue.js. Actually, the tests check if the first error thrown by webpack is about
missing less loader. But the fixtures needs these loaders in the following order: scss, sass and finally less.
Since there's no other loader than the VueJs one loaded in this test case, errors should be in the same order.
@weaverryan
Copy link
Member

Ah, thank you @NiR-!

@weaverryan weaverryan merged commit 2165a54 into symfony:master Jul 12, 2017
weaverryan added a commit that referenced this pull request Jul 12, 2017
This PR was merged into the master branch.

Discussion
----------

Fix inability to use scss loader with Vue.js

Prior to this fix when the less loader isn't enabled, the scss loader config is rewritten by mistake, leading to this error:

> Module build failed: Error: Cannot process lang="less" inside src/js/Player.vue: the less-loader is not activated.

I also fix a functional test case for Vue.js. Actually, the tests check if the first error thrown by webpack is about missing less loader. But the fixtures needs these loaders in the following order: scss, sass and finally less. Since there's no other loader than the VueJs one loaded in this test case, errors should be in the same order.

Commits
-------

2165a54 Fix inability to use scss loader with Vue.js
@akerouanton akerouanton deleted the fix-vuejs-scss branch July 13, 2017 12:55
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.

None yet

3 participants