-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: adjust the umd compilation process of the ui library (#1206)
* chore: adjust the code style * refactor: adjust the umd compilation process of the ui library
- Loading branch information
atzcl
authored
Apr 10, 2021
1 parent
be3ae40
commit e3fc6ad
Showing
6 changed files
with
24 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,9 @@ | ||
import baseConfig from '../../scripts/rollup.base.js' | ||
import postcss from 'rollup-plugin-postcss' | ||
import NpmImport from 'less-plugin-npm-import' | ||
import path from 'path' | ||
import baseConfig, { | ||
removeImportStyleFromInputFilePlugin, | ||
} from '../../scripts/rollup.base.js' | ||
|
||
export default baseConfig( | ||
'formily.antd', | ||
'Formily.Antd', | ||
postcss({ | ||
extract: path.resolve('dist/antd.css'), | ||
use: [ | ||
[ | ||
'less', | ||
{ | ||
javascriptEnabled: true, | ||
plugins: [new NpmImport({ prefix: '~' })], | ||
}, | ||
], | ||
], | ||
}) | ||
removeImportStyleFromInputFilePlugin() | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import baseConfig from '../../scripts/rollup.base.js' | ||
import postcss from 'rollup-plugin-postcss' | ||
import path from 'path' | ||
import baseConfig, { | ||
removeImportStyleFromInputFilePlugin, | ||
} from '../../scripts/rollup.base.js' | ||
|
||
export default baseConfig( | ||
'formily.next', | ||
'Formily.Next', | ||
postcss({ | ||
extract: path.resolve('dist/next.css'), | ||
}) | ||
removeImportStyleFromInputFilePlugin() | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters