Skip to content

Commit

Permalink
chore: use @socialgouv/code-du-travail-css
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Oct 17, 2018
1 parent f95ec07 commit 8dcbef5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
4 changes: 1 addition & 3 deletions package.json
Expand Up @@ -27,7 +27,5 @@
"lerna": "^3.4.1",
"npm-run-all": "^4.1.3"
},
"workspaces": [
"packages/*"
]
"workspaces": ["packages/*"]
}
13 changes: 7 additions & 6 deletions packages/code-du-travail-frontend/next.config.js
@@ -1,10 +1,11 @@
const withCSS = require("@zeit/next-css");
//const withImages = require("next-images");
const withImages = require("next-images");

require("dotenv").config();

module.exports = withCSS({
// use routes.js
useFileSystemPublicRoutes: false,
poweredByHeader: false
});
module.exports = withImages(
withCSS({
// https://github.com/zeit/next.js/#disabling-file-system-routing
useFileSystemPublicRoutes: false
})
);
3 changes: 2 additions & 1 deletion packages/code-du-travail-frontend/package.json
Expand Up @@ -8,7 +8,8 @@
"main": "src/index.js",
"dependencies": {
"@sentry/browser": "^4.1.0",
"@socialgouv/code-du-travail-ui": "^1.2.3",
"@socialgouv/code-du-travail-ui": "^1.2.4",
"@socialgouv/code-du-travail-css": "^1.0.4",
"@zeit/next-css": "^1.0.0",
"date-fns": "^1.29.0",
"dotenv": "^6.0.0",
Expand Down
1 change: 1 addition & 0 deletions packages/code-du-travail-frontend/pages/_app.js
@@ -1,6 +1,7 @@
import App, { Container } from "next/app";
import React from "react";
import GitHubForkRibbon from "react-github-fork-ribbon";
import "@socialgouv/code-du-travail-css";

import Header from "../src/layout/Header.js";
import Footer from "../src/layout/Footer.js";
Expand Down
5 changes: 0 additions & 5 deletions packages/code-du-travail-frontend/pages/_document.js
Expand Up @@ -21,11 +21,6 @@ export default class MyDocument extends Document {
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link rel="shortcut icon" href="/static/favicon.ico" />
{/*<link rel="stylesheet" href="/static/bundle.css" />*/}
<link
rel="stylesheet"
href="//rawgit.com/SocialGouv/code-du-travail-css/master/docs/bundle.css"
/>
{this.props.styleTags}
<script src="//cdn.polyfill.io/v2/polyfill.min.js?features=default,fetch" />
</Head>
Expand Down

0 comments on commit 8dcbef5

Please sign in to comment.