Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use npm build of code-du-travail-css #176

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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