Skip to content

Commit

Permalink
Fixed webpack configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloWorld017 committed Feb 21, 2017
1 parent 89888ca commit a164618
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"devDependencies": {
"babel-core": "^6.22.1",
"babel-loader": "^6.2.10",
"babel-preset-es2015": "^6.22.0",
"babel-preset-latest": "^6.22.0",
"css-loader": "^0.26.1",
"extract-text-webpack-plugin": "^2.0.0-rc.3",
"file-loader": "^0.10.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Author.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
authorName(){
return this.author.name
return this.author.name;
}
}
}
Expand Down
8 changes: 5 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@ module.exports = {
'less-loader'
],
fallback: 'vue-style-loader'
})
}),

'js': 'babel-loader?presets[]=latest'
}
}
},
{
test: /\.js$/,
loader: 'babel-loader',
query: {
presets: ['es2015']
presets: ['latest']
},
exclude: /node_modules/
},
Expand Down Expand Up @@ -70,7 +72,7 @@ module.exports = {
};

if(process.env.NODE_ENV === 'production'){
module.exports.devtool = '#source-map';
module.exports.devtool = '';
module.exports.plugins = (module.exports.plugins || []).concat([
new webpack.DefinePlugin({
'process.env': {
Expand Down

0 comments on commit a164618

Please sign in to comment.