🐛 répare la page de choix de couleur

pull/256/head
Johan Girod 2018-06-19 11:55:01 +02:00
parent a6e08af62b
commit 958448b2c1
2 changed files with 4 additions and 11 deletions

View File

@ -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 :{' '}
<b>{this.props.couleur}</b>
</p>
<Layout tracker={tracker} />
<Layout />
</div>
)
}

View File

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