mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
6to5 rename to Babel
This commit is contained in:
parent
88a912c1f5
commit
8715689944
@ -35,8 +35,8 @@
|
||||
"grunt-open": "~0.2.3",
|
||||
"jshint-loader": "~0.8.0",
|
||||
"grunt-contrib-copy": "~0.5.0",<% if (es6) { %>
|
||||
"6to5": "^2.7.1",
|
||||
"6to5-loader": "^1.0.0",<% } %>
|
||||
"babel": "^4.0.0",
|
||||
"babel-loader": "^4.0.0",<% } %>
|
||||
"grunt-contrib-clean": "~0.6.0",<% if (stylesLanguage.match(/s[ac]ss/)) { %>
|
||||
"sass-loader": "^0.3.1",<% } %><% if (stylesLanguage === 'less') { %>
|
||||
"less-loader": "^2.0.0",<% } %><% if (stylesLanguage === 'stylus') { %>
|
||||
|
||||
@ -38,7 +38,7 @@ module.exports = {
|
||||
}],
|
||||
loaders: [{
|
||||
test: /\.js$/,
|
||||
loader: 'react-hot!<% if (es6) { %>6to5!<% }%>jsx-loader?harmony'
|
||||
loader: 'react-hot!<% if (es6) { %>babel!<% }%>jsx-loader?harmony'
|
||||
},<% if (stylesLanguage === 'sass') { %> {
|
||||
test: /\.sass/,
|
||||
loader: 'style-loader!css-loader!sass-loader?outputStyle=expanded'
|
||||
|
||||
@ -45,7 +45,7 @@ module.exports = {
|
||||
|
||||
loaders: [{
|
||||
test: /\.js$/,
|
||||
loader: '<% if (es6) { %>6to5!<% }%>jsx-loader?harmony'
|
||||
loader: '<% if (es6) { %>babel!<% }%>jsx-loader?harmony'
|
||||
}, {
|
||||
test: /\.css$/,
|
||||
loader: 'style-loader!css-loader'
|
||||
|
||||
@ -25,7 +25,7 @@ module.exports = function (config) {
|
||||
loader: 'url-loader?limit=10000&mimetype=image/png'
|
||||
}, {
|
||||
test: /\.js$/,
|
||||
loader: '<% if (es6) { %>6to5!<% }%>jsx-loader?harmony'
|
||||
loader: '<% if (es6) { %>babel!<% }%>jsx-loader?harmony'
|
||||
},<% if (stylesLanguage === 'sass') { %> {
|
||||
test: /\.sass/,
|
||||
loader: 'style-loader!css-loader!sass-loader?outputStyle=expanded'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user