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' }),