mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
added 6to5 loader in webpack configs
This commit is contained in:
parent
c3f6abc95e
commit
7421ef680f
@ -34,7 +34,9 @@
|
||||
"webpack-dev-server": "~1.6.5",
|
||||
"grunt-open": "~0.2.3",
|
||||
"jshint-loader": "~0.8.0",
|
||||
"grunt-contrib-copy": "~0.5.0",
|
||||
"grunt-contrib-copy": "~0.5.0",<% if (es6) { %>
|
||||
"6to5": "^1.10.10",
|
||||
"6to5-loader": "^0.2.3",<% } %>
|
||||
"grunt-contrib-clean": "~0.6.0",<% if (stylesLanguage === 'sass') { %>
|
||||
"sass-loader": "^0.2.0",<% } %><% if (stylesLanguage === 'less') { %>
|
||||
"less-loader": "^0.7.7",<% } %><% if (stylesLanguage === 'stylus') { %>
|
||||
|
||||
@ -45,7 +45,7 @@ module.exports = {
|
||||
|
||||
loaders: [{
|
||||
test: /\.jsx$/,
|
||||
loader: 'jsx-loader?harmony'
|
||||
loader: '<% if (es6) { %>6to5!<% }%>jsx-loader?harmony'
|
||||
}, {
|
||||
test: /\.css$/,
|
||||
loader: 'style-loader!css-loader'
|
||||
|
||||
@ -28,7 +28,7 @@ module.exports = function (config) {
|
||||
loader: 'url-loader?limit=10000&mimetype=image/png'
|
||||
}, {
|
||||
test: /\.jsx$/,
|
||||
loader: 'jsx-loader'
|
||||
loader: '<% if (es6) { %>6to5!<% }%>jsx-loader'
|
||||
}]
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user