Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix(web): 修复样式加载顺序问题 (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darmody authored Jul 3, 2020
1 parent 5d63358 commit af8db50
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 67 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/remax-cli/template/entry.js.ejs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import 'remax/web/normalize.css';
import 'remax/web/app.css';

import App from './app';
import * as React from 'react';
import { createPageConfig, createAppConfig } from 'remax';
import { Router, CacheSwitch, CacheRoute, Route, Redirect, Link, createHashHistory, createBrowserHistory, render, hd, loadable } from 'remax/web';
import { RuntimeOptions } from '@remax/runtime';

import 'remax/web/normalize.css';
import 'remax/web/app.css';

hd();

<%- pages.map((page, i) => `const page_${i} = loadable(() => import(/* webpackChunkName: "${page.route}" */'${page.path}').then(({ default: c }) => createPageConfig(c)));`).join('\n') %>
Expand Down
2 changes: 1 addition & 1 deletion packages/remax-one/src/hostComponents/Label/index.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const Label: React.ForwardRefRenderFunction<any, LabelProps> = (props, ref) => (
<label {...filterProps(props)} ref={ref} />
);

export default Label;
export default React.forwardRef(Label);

1 comment on commit af8db50

@vercel
Copy link

@vercel vercel bot commented on af8db50 Jul 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.