diff --git a/assets/stylesheets/sections/login.scss b/assets/stylesheets/sections/login.scss deleted file mode 100644 index a2e4711b2782db..00000000000000 --- a/assets/stylesheets/sections/login.scss +++ /dev/null @@ -1,5 +0,0 @@ -/** @format */ -@import '../shared/colors'; - -@import 'login/magic-login/style'; -@import 'login/wp-login/style'; diff --git a/client/document/desktop.jsx b/client/document/desktop.jsx index 82c687ea832dfc..acdc35589bd8eb 100644 --- a/client/document/desktop.jsx +++ b/client/document/desktop.jsx @@ -54,6 +54,12 @@ class Desktop extends React.Component { } type="text/css" /> + diff --git a/client/document/index.jsx b/client/document/index.jsx index 67181978eaa686..0f2792f392a37f 100644 --- a/client/document/index.jsx +++ b/client/document/index.jsx @@ -22,6 +22,10 @@ import getStylesheet from './utils/stylesheet'; import WordPressLogo from 'components/wordpress-logo'; import { jsonStringifyForHtml } from '../../server/sanitize'; +const cssChunkLink = asset => ( + +); + class Document extends React.Component { render() { const { @@ -57,6 +61,8 @@ class Document extends React.Component { inlineScriptNonce, } = this.props; + const csskey = isRTL ? 'css.rtl' : 'css.ltr'; + const inlineScript = `COMMIT_SHA = ${ jsonStringifyForHtml( commitSha ) };\n` + ( user ? `var currentUser = ${ jsonStringifyForHtml( user ) };\n` : '' ) + @@ -93,6 +99,8 @@ class Document extends React.Component { } type="text/css" /> + { entrypoint[ csskey ].map( cssChunkLink ) } + { chunkFiles[ csskey ].map( cssChunkLink ) } { sectionCss && ( ) } - { entrypoint.map( asset => ( + { entrypoint.js.map( asset => (