-
Notifications
You must be signed in to change notification settings - Fork 7
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
Using es6-loader with non-js loaders. #6
Comments
If you're using the loader inline, it is Or if you want it cleaner, add the following to your webpack config: module: {
loaders: [
{ test: /\.js$/, loader: 'es6-loader' }
]
} and just Loaders are applied in the order you place them. So for your example, You probably want one of these:
Leave off the |
Here is what I had that was failing. main.js
webpack.config.js
I had to change the es6-loader to ignore the initial file to get the css |
I spent too many cycles trying to figure out why my
require('css!style!stylus!./module.styl');
was not working this morning. Then I remembered that JS file was being compiled by the es6-loader and the require call was probably being transformed in some way there.Is there any clean way to use the es6-loader without smashing all require calls for webpack?
The text was updated successfully, but these errors were encountered: