From 958448b2c1131e373a055a6058f31bb6fa06a639 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Tue, 19 Jun 2018 11:55:01 +0200 Subject: [PATCH] =?UTF-8?q?:bug:=20r=C3=A9pare=20la=20page=20de=20choix=20?= =?UTF-8?q?de=20couleur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/entry-colour-chooser.js | 9 ++------- source/webpack.dev.js | 6 ++---- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/source/entry-colour-chooser.js b/source/entry-colour-chooser.js index cd3d22102..68cae2d0c 100644 --- a/source/entry-colour-chooser.js +++ b/source/entry-colour-chooser.js @@ -4,13 +4,8 @@ import { SliderPicker } from 'react-color' import { render } from 'react-dom' import { connect, Provider } from 'react-redux' import { createStore } from 'redux' -import reducers from './reducers/reducers' import Layout from './containers/Layout' - -let tracker = { - push: () => {}, - connectToHistory: history => history -} +import reducers from './reducers/reducers' let store = createStore(reducers) @@ -38,7 +33,7 @@ class MyComponent extends React.Component { "data-couleur" du script sur votre page est :{' '} {this.props.couleur}

- + ) } diff --git a/source/webpack.dev.js b/source/webpack.dev.js index a39dcce7f..222bbc4e8 100644 --- a/source/webpack.dev.js +++ b/source/webpack.dev.js @@ -1,6 +1,4 @@ var webpack = require('webpack'), - path = require('path'), - HardSourceWebpackPlugin = require('hard-source-webpack-plugin'), common = require('./webpack.common.js') module.exports = { @@ -13,13 +11,13 @@ module.exports = { '@babel/polyfill', 'react-hot-loader/patch', './source/entry.js' - ] + ], + 'colour-chooser': ['@babel/polyfill', './source/entry-colour-chooser.js'] // entrées désactivées pour accélérer la compilation au dev // // 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.EnvironmentPlugin({ NODE_ENV: 'development' }),