-
Notifications
You must be signed in to change notification settings - Fork 366
add configuration option px2rpx #381
add configuration option px2rpx #381
Conversation
设置下 git 的 email 信息吧 |
@@ -67,6 +67,7 @@ export default function rollupConfig( | |||
NODE_ENV: process.env.NODE_ENV || 'development', | |||
REMAX_PLATFORM: argv.target, | |||
REMAX_DEBUG: process.env.REMAX_DEBUG, | |||
REMAX_PX2RPX: `${options.px2Rpx}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个没必要吧?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
奥。。是为了 runtime 也能读到。。想想有没有别的办法
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯,要有更好的办法就好了
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 831ee8a:
|
@@ -2,6 +2,7 @@ import { RemaxOptions } from './getConfig'; | |||
|
|||
const defaultOptions: RemaxOptions = { | |||
cssModules: /\.module\.(less|scss|css)$/, | |||
px2Rpx: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
px2Rpx: true, | |
pxToRpx: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yesmeck 已修改为 pxToRpx, 见 commit#1b88756
Codecov Report
@@ Coverage Diff @@
## master #381 +/- ##
==========================================
+ Coverage 92.39% 92.49% +0.09%
==========================================
Files 182 183 +1
Lines 2631 2638 +7
Branches 323 327 +4
==========================================
+ Hits 2431 2440 +9
+ Misses 199 197 -2
Partials 1 1
Continue to review full report at Codecov.
|
好的 |
8ecfc6a
to
ccd8aa4
Compare
文档也补一下吧 |
好的,已补充 |
@Clarence-pan 刚合了几个 PR,需要 rebase 下 master 更新下测试的 snapshot 了。其他没问题了。 |
eea3074
to
831ee8a
Compare
好的,已修复 |
fixed #380