From 5bb2c32ff7a049b3e796ce2e7d7f1625946313de Mon Sep 17 00:00:00 2001 From: Mael Date: Mon, 12 Mar 2018 16:37:23 +0100 Subject: [PATCH] Compilation sur Webpack 4 --- package.json | 32 ++++++++++++++++---------------- source/webpack.prod.js | 4 ++-- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 6b6cf2c39..dd4bee4b1 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@babel/preset-env": "^7.0.0-beta.40", "@babel/preset-react": "^7.0.0-beta.40", "akh": "^3.1.2", - "autoprefixer": "^8.0.0", + "autoprefixer": "^8.1.0", "babel-eslint": "^8.2.2", "babel-loader": "8.0.0-beta.2", "babel-plugin-syntax-dynamic-import": "^6.18.0", @@ -40,31 +40,30 @@ "daggy": "^1.2.0", "dedent-js": "^1.0.1", "deep-assign": "^2.0.0", - "eslint": "^4.18.1", + "eslint": "^4.18.2", "eslint-plugin-react": "^7.7.0", "express": "^4.16.2", "fantasy-combinators": "0.0.1", "fantasy-land": "^3.5.0", "fantasy-tuples": "^1.0.0", - "file-loader": "^1.1.10", + "file-loader": "^1.1.11", "flow": "^0.2.3", "fuse.js": "^3.2.0", "global": "^4.3.2", - "google-translate-api": "^2.3.0", "i18next": "^10.0.7", - "ignore-loader": "^0.1.2", - "hard-source-webpack-plugin": "^0.6.0", + "hard-source-webpack-plugin": "^0.6.4", + "google-translate-api": "^2.3.0", "html-loader": "^0.5.5", "ignore-loader": "^0.1.2", - "js-yaml": "^3.10.0", + "js-yaml": "^3.11.0", "jsdom": "^11.6.2", "json-loader": "^0.5.7", "marked": "^0.3.17", - "mocha": "^5.0.1", + "mocha": "^5.0.4", "mocha-webpack": "^1.0.1", - "nearley": "^2.11.1", - "nearley-loader": "^0.0.3", - "npm": "^5.6.0", + "nearley": "^2.13.0", + "nearley-loader": "^2.0.0", + "npm": "^5.7.1", "postcss-loader": "^2.1.1", "ramda": "^0.25.0", "ramda-fantasy": "^0.8.0", @@ -91,14 +90,15 @@ "redux-devtools": "^3.4.1", "redux-devtools-dock-monitor": "^1.1.3", "redux-devtools-log-monitor": "^1.4.0", - "redux-form": "^7.2.3", + "redux-form": "^7.3.0", "reselect": "^3.0.1", "screenfull": "^3.3.2", "source-map-support": "^0.5.3", - "style-loader": "^0.20.2", - "url-loader": "^0.6.2", - "webpack": "^4.0.1", - "webpack-dev-server": "^3.1.0", + "style-loader": "^0.20.3", + "url-loader": "^1.0.1", + "webpack": "^4.1.1", + "webpack-cli": "^2.0.11", + "webpack-dev-server": "^3.1.1", "whatwg-fetch": "^2.0.3", "yaml-loader": "^0.5.0" }, diff --git a/source/webpack.prod.js b/source/webpack.prod.js index cdcce1240..62ac82103 100644 --- a/source/webpack.prod.js +++ b/source/webpack.prod.js @@ -3,12 +3,12 @@ var webpack = require('webpack'), module.exports = { ...common, + mode: 'production', entry: { bundle: ['@babel/polyfill', 'whatwg-fetch', './source/entry.js'], // le nom "simulateur" est là pour des raisons historiques // simulateur: './source/iframe-script.js', 'colour-chooser': ['@babel/polyfill', './source/entry-colour-chooser.js'] - }, - plugins: [new webpack.optimize.UglifyJsPlugin()] + } }