vtex-render-session
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -10,2 +10,6 @@ # Changelog | ||
## [0.1.2] - 2018-12-12 | ||
### Changed | ||
- Webpack mode fetched from env | ||
## [0.1.1] - 2018-12-12 | ||
@@ -12,0 +16,0 @@ |
{ | ||
"name": "vtex-render-session", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Adds session as external to render runtime", | ||
@@ -9,3 +9,5 @@ "scripts": { | ||
"watch": "webpack --watch", | ||
"build": "webpack --config ./webpack.config.js", | ||
"build": "npm run clean && npm run buildProd && npm run buildDev", | ||
"buildProd": "webpack --mode=\"production\" --config ./webpack.config.js", | ||
"buildDev": "webpack --mode=\"development\" --config ./webpack.config.js", | ||
"prereleasy": "npm run build", | ||
@@ -12,0 +14,0 @@ "postreleasy": "npm publish" |
'use strict'; | ||
const path = require('path'); | ||
const mode = 'production'; | ||
// const mode = 'development'; | ||
module.exports = { | ||
module.exports = (env, {mode}) => ({ | ||
entry: { | ||
@@ -54,2 +51,2 @@ 'render-session': ['index.ts'], | ||
devtool: mode === "production" ? undefined: 'inline-source-map', | ||
}; | ||
}); |
138984
272