Skip to content

Commit 3db7c7e

Browse files
committed
Live preview
1 parent 79004ff commit 3db7c7e

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export interface LivePreview {
7373
}
7474

7575
export interface LivePreviewQuery {
76-
hash: string
76+
live_preview: string
7777
content_type_uid: string
7878
}
7979

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"build:web": "webpack --config webpack/webpack.web.js",
2121
"build:react-native": "webpack --config webpack/webpack.react-native.js",
2222
"build:native-script": "webpack --config webpack/webpack.nativescript.js",
23-
"build": "NODE_ENV=production && npm run build:node && npm run build:web && npm run build:react-native && npm run build:native-script",
23+
"build": "npm run build:node && npm run build:web && npm run build:react-native && npm run build:native-script",
2424
"generate-docs": "node_modules/.bin/jsdoc --configure docs-config.json --verbose",
2525
"prepare": "npm run build",
2626
"pretest": "npm run build"

webpack/webpack.common.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ const { CleanWebpackPlugin } = require('clean-webpack-plugin')
55

66
const Package = require('./../package.json');
77

8-
const PROD = process.env.NODE_ENV === 'production'
9-
108
module.exports = function(options) {
119
return {
12-
mode: PROD ? 'production' : 'development',
10+
mode: 'production',
1311
entry: {
1412
contentstack: "./src/core/contentstack",
1513
},

0 commit comments

Comments
 (0)