From 4704aaedc5ce3d2faa3cc44bc72fec1a3f38f795 Mon Sep 17 00:00:00 2001 From: Mael Date: Tue, 13 Nov 2018 10:57:45 +0000 Subject: [PATCH] =?UTF-8?q?R=C3=A9solution=20du=20probl=C3=A8me=20du=20nou?= =?UTF-8?q?veau=20site=20/publicodes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/sites/embauche.gouv.fr/entry.js | 2 +- source/sites/publi.codes/App.js | 2 +- source/webpack.common.js | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/source/sites/embauche.gouv.fr/entry.js b/source/sites/embauche.gouv.fr/entry.js index f1404b0b3..44c5c2187 100644 --- a/source/sites/embauche.gouv.fr/entry.js +++ b/source/sites/embauche.gouv.fr/entry.js @@ -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') diff --git a/source/sites/publi.codes/App.js b/source/sites/publi.codes/App.js index 295c34036..adf791e98 100644 --- a/source/sites/publi.codes/App.js +++ b/source/sites/publi.codes/App.js @@ -11,7 +11,7 @@ class App extends Component { render() { return ( diff --git a/source/webpack.common.js b/source/webpack.common.js index 72270fea6..f346a5fc7 100644 --- a/source/webpack.common.js +++ b/source/webpack.common.js @@ -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]