diff --git a/source/server.js b/source/server.js index e65aa9cc3..9a8c61f95 100644 --- a/source/server.js +++ b/source/server.js @@ -14,9 +14,7 @@ const rewrite = basename => ({ app.use( history({ - rewrites: ['embauche', 'infrance', 'mon-entreprise', 'publicodes'].map( - rewrite - ) + rewrites: ['embauche', 'infrance', 'mon-entreprise'].map(rewrite) }) ) diff --git a/source/sites/publi.codes/App.js b/source/sites/publi.codes/App.js deleted file mode 100644 index d802ff022..000000000 --- a/source/sites/publi.codes/App.js +++ /dev/null @@ -1,34 +0,0 @@ -import RulePage from 'Components/RulePage' -import React, { Component } from 'react' -import { Route, Switch } from 'react-router-dom' -import 'Ui/index.css' -import Provider from '../../Provider' -import Route404 from '../embauche.gouv.fr/pages/Route404' -import RulesList from '../embauche.gouv.fr/pages/RulesList' -import ComparativeSimulation from 'Components/ComparativeSimulation' - -class App extends Component { - render() { - return ( - - - - - - - - - ) - } -} - -let devMode = process.env.NODE_ENV !== 'production' -export default (devMode - ? do { - let { hot } = require('react-hot-loader') - hot(module)(App) - } - : App) diff --git a/source/sites/publi.codes/entry.js b/source/sites/publi.codes/entry.js deleted file mode 100644 index a85ed24df..000000000 --- a/source/sites/publi.codes/entry.js +++ /dev/null @@ -1,7 +0,0 @@ -import React from 'react' -import { render } from 'react-dom' -import App from './App' - -let anchor = document.querySelector('#js') - -render(, anchor) diff --git a/source/webpack.common.js b/source/webpack.common.js index f346a5fc7..11dfcda0c 100644 --- a/source/webpack.common.js +++ b/source/webpack.common.js @@ -26,7 +26,6 @@ module.exports = { // To not introduce breaking into the iframe integration, we serve simulateur.js from a 'dist' subdirectory 'dist/simulateur': ['./source/sites/embauche.gouv.fr/iframe-script.js'], - publicodes: ['./source/sites/publi.codes/entry.js'] }, output: { path: path.resolve('./dist/') @@ -65,14 +64,7 @@ module.exports = { 'Du status juridique à premier embauche, vous trouverez ici toutes les ressources nécessaires pour démarrer votre activité.', filename: 'mon-entreprise.html' }), - new HTMLPlugin({ - template: 'index.html', - chunks: ['publicodes'], - title: 'publicodes ✍️', - description: - 'Une base de connaissance ? Du code ? Les deux à la fois. Lancement imminent !', - filename: 'publicodes.html' - }), + new CopyPlugin([ './manifest.webmanifest', './source/sites/embauche.gouv.fr/images/logo',