Résolution du problème du nouveau site /publicodes

barème-continu
Mael 2018-11-13 10:57:45 +00:00
parent 0237e1c84a
commit 2840acf7b4
3 changed files with 3 additions and 7 deletions

View File

@ -1,7 +1,7 @@
import 'iframe-resizer'
import React from 'react'
import { render } from 'react-dom'
import App from '../publi.codes/App'
import App from './App'
let anchor = document.querySelector('#js')

View File

@ -11,7 +11,7 @@ class App extends Component {
render() {
return (
<Provider
basename="embauche"
basename="publicodes"
initialStore={{ targetNames: ['impact'] }}
reduxMiddlewares={[]}>
<Switch>

View File

@ -29,11 +29,7 @@ module.exports = {
publicodes: ['./source/sites/publi.codes/entry.js']
},
output: {
path: path.resolve('./dist/'),
filename: ({ chunk }) =>
['dist/simulateur'].includes(chunk.name)
? '[name].js'
: '[name].[hash].js'
path: path.resolve('./dist/')
},
module: {
rules: [...web, ...universal]