Skip to content

Commit

Permalink
update codes
Browse files Browse the repository at this point in the history
  • Loading branch information
leftstick committed May 19, 2016
1 parent 967ab67 commit 858635a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion js/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'css/main.css';
import Vue from 'vue';
import Game from './components/Game';
import store from 'js/vuex/store/store';
import store from 'js/vuex/store';


/* eslint-disable no-new */
Expand Down
6 changes: 5 additions & 1 deletion js/vuex/store/store.js → js/vuex/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@ const mutations = {
}
};

export default new Vuex.Store({state, mutations});
export default new Vuex.Store({
state,
mutations,
strict: process.env.NODE_ENV !== 'production'
});
7 changes: 4 additions & 3 deletions webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ module.exports = {
]
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
}
}),

new HtmlWebpackPlugin({
filename: 'index.html',
inject: 'body',
Expand Down

0 comments on commit 858635a

Please sign in to comment.