Skip to content

Commit

Permalink
buid node prod
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhson1085 committed Dec 15, 2017
1 parent ec8f03b commit 958bd41
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 34 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Expand Up @@ -4,7 +4,6 @@ MAINTAINER ToMo Team
RUN npm install -g pm2 truffle

WORKDIR /build
ENV NODE_ENV production

COPY ./package.json /build
RUN npm install
Expand Down
48 changes: 24 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -4,7 +4,7 @@
"description": "Tomo Reward Engine/CashIn/CashOut flows",
"scripts": {
"lint": "eslint ./",
"build": "webpack",
"build": "node ./node_modules/webpack/bin/webpack.js -p",
"dev": "npm run webpack & npm run nodemon",
"contracts": "truffle deploy --reset --network sidechain --compile-all && truffle deploy --reset --network mainchain --compile-all",
"nodemon": "./node_modules/.bin/nodemon index.js",
Expand Down
9 changes: 1 addition & 8 deletions webpack.config.js
Expand Up @@ -10,17 +10,10 @@ module.exports = {
path: path.resolve(__dirname, 'build'),
filename: 'app.js'
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"production"'
}
}),
],
resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
'vue$': 'vue/dist/vue.common.js',
'vue$': 'vue/dist/vue.min.js',
'@': resolve('app'),
}
},
Expand Down

0 comments on commit 958bd41

Please sign in to comment.