diff --git a/lib/core/blogPost.js b/lib/core/blogPost.js index d3611ade2f..bc02cbfdc1 100644 --- a/lib/core/blogPost.js +++ b/lib/core/blogPost.js @@ -1,4 +1,4 @@ -const React = require('react'); +import React from 'react'; import blogDatas from '@generated/blogDatas'; // inner blog component for the article itself, without sidebar/header/footer diff --git a/lib/core/index.js b/lib/core/index.js index 5f95439fb0..fcda46fd90 100644 --- a/lib/core/index.js +++ b/lib/core/index.js @@ -18,9 +18,7 @@ class App extends React.Component { {blogDatas.map(({path}) => { return (
- - {path} - + {path}
); })} diff --git a/lib/dev.js b/lib/dev.js index c0975f7f83..4810e52e5f 100644 --- a/lib/dev.js +++ b/lib/dev.js @@ -98,5 +98,4 @@ module.exports = async function dev(sourceDir, cliOptions = {}) { } } ); - console.log("finish serve"); };