diff --git a/.babelrc b/.babelrc index 9ea1ee3..86c445f 100644 --- a/.babelrc +++ b/.babelrc @@ -1,16 +1,3 @@ { - "presets": [ - "react", - ["env", { - "target": { - "browsers": [ - "not ie <= 8", - "last 2 iOS major versions", - "last 2 Firefox major versions", - "last 2 Safari major versions", - "> 10% in UK" - ] - } - }] - ] + "presets": ["es2015", "react"] } diff --git a/package.json b/package.json index 2646c0c..249bbf5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@holidayextras/static-site-generator", - "version": "7.0.2", + "version": "6.2.7", "description": "Holiday Extras Static Site Generator in metalsmith / react", "repository": { "type": "git", @@ -34,25 +34,24 @@ "debug": "^2.2.0", "jsonp": "^0.2.0", "meta-marked": "^0.4.0", - "metalsmith": "^2.3.0", + "metalsmith": "^1.3.0", "metalsmith-assets": "^0.1.0", "metalsmith-markdown": "^0.2.1", - "metalsmith-react-tpl": "^2.0.0", + "metalsmith-react-tpl": "^1.0.0", "mkdirp": "^0.5.1", "moment": "^2.11.1", "prismic.io": "^3.1.3", "publish": "^0.5.0", - "react": "^16.0.0", - "react-dom": "^16.0.0", - "react-redux": "^5.0.6", - "redux": "^3.7.2", + "react": "^0.14.3", + "react-dom": "^0.14.3", + "react-redux": "^5.0.4", "underscore": "^1.8.3" }, "devDependencies": { "babel-cli": "6.7.7", - "babel-core": "^6.26.0", - "babel-preset-env": "^1.6.0", - "babel-preset-react": "^6.24.1", + "babel-core": "^6.8.0", + "babel-preset-es2015": "^6.6.0", + "babel-preset-react": "^6.5.0", "brace-expansion": "^1.1.7", "grunt": "^0.4.5", "grunt-contrib-uglify": "^0.11.0", @@ -61,6 +60,6 @@ "npm-watch": "^0.1.8", "rimraf": "^2.2.8", "standard": "^10.0.2", - "webpack": "^3.6.0" + "webpack": "^1.13.2" } } diff --git a/src/webpackPages.js b/src/webpackPages.js index 45e8487..7be9413 100644 --- a/src/webpackPages.js +++ b/src/webpackPages.js @@ -38,9 +38,9 @@ const webpackPages = (globalOptions) => { output += 'var store = require( \'' + props.store + '\' );' output += 'window.ReactRootProvider = Provider;' output += 'window.ReactRootStore = store;' - output += 'var renderedElement = ReactDOM.hydrate( , document.getElementById( \'content\' ));' + output += 'var renderedElement = ReactDOM.render( , document.getElementById( \'content\' ));' } else { - output += 'var renderedElement = ReactDOM.hydrate( , document.getElementById( \'content\' ));' + output += 'var renderedElement = ReactDOM.render( , document.getElementById( \'content\' ));' } const destFilename = options.destFilename