Commit Graph

21 Commits

Author SHA1 Message Date
Bradley Xu 710b2e48a0
feat: improve miniapp (#6985) 2024-11-11 14:41:31 +08:00
水澜 78f850fa67
feat: hash only css modules (#6289)
* feat: hash only css modules

* fix: type

* docs: css modules hash only

* chore: add changeset

* refactor: support localIdentName

* chore: add todo
2023-09-20 15:17:28 +08:00
ClarkXia f5d155b5f0
feat: support register different bundler (#6440)
* feat: refactor bundler

* fix: refactor getwebpack config

* fix: add start and build

* fix: optimize code

* fix: remove useless file

* chore: remove useless file

* chore: optimize code

* fix: bump build-scripts version

* fix: bump build-scripts version

* chore: refactor file

* feat: refactor shared config

* feat: support rspack config

* fix: reset example

* chore: optimize code

* fix: update css rule

* chore: version

* chore: update lock

* fix: get css modules ident

* feat: support rspack build

* fix: css modules ident rule

* chore: add changelog

* chore: test case

* chore: test case

* chore: optimize code

* fix: compilation.chunks cause performace issue

* fix: hmr

* chore: lint

* feat: support dataLoader in rspack mode

* chore: format

* fix: add dependencies to bundles

* chore: reduce dependencies

* refactor: optimize code
2023-08-21 17:17:17 +08:00
ClarkXia cf8a78e379
feat: support code splitting strategy of page-vendors (#6386)
* feat: support code splitting strategy of page-vendors

* chore: fix type

* fix: test case
2023-07-17 10:44:15 +08:00
ClarkXia f95bbc2e71
fix: optimize deprecation warning of webpack (#6319)
* fix: optimize deprecation warning of webpack

* fix: changelog
2023-06-14 11:09:13 +08:00
ClarkXia 071a627dac
feat: support code spiliting strategy (#5957)
* feat: support code spiliting strategy

* fix: optimize code

* fix: compatible with splitChunks

* fix: compatible with splitChunks

* chore: default value chunks

* Update config.md

* Update routes.ts
2023-02-24 17:22:18 +08:00
NK 8a60304b0b Fix/miniapp problems (#671)
* fix(miniapp): page load after getAppData

* docs(miniapp): update miniapp-runtime readme

* feat(miniapp): support turn off rpx2vw using enableRpx2Vw

* chore(miniapp): update example

* fix(miniapp): outputDir is wrong in command line

* fix(miniapp): no log in build command

* fix(miniapp): history type

* chore(miniapp): update example

* feat(miniapp): support enableCache to disable cache in miniapp task

* fix(miniapp): throw error if no getConfig function in page component

* feat(miniapp): add params to specify getData and getConfig

* fix(miniapp): getData/getAppData existence situation

* feat(miniapp): normalize route in history

* fix: lint warning

* feat(miniapp): align Link to props and history.push props

* docs(miniapp): add more articles

* feat(miniapp): support nativeConfig in plugin-miniapp

* feat(miniapp): rename getConfig to pageConfig

* feat(miniapp): rename getData to dataLoader

* fix: lint warning

* docs: fix broken links

* docs(miniapp): update miniapp location and relative links

* Update start.md

Co-authored-by: ZeroLing <i@zeroling.com>
2022-11-15 16:31:24 +08:00
ClarkXia f0e3d570e2 feat: support query loader of raw and url (#674) 2022-11-15 10:33:11 +08:00
luhc228 5d1c2b5792 fix: fail to pre-bundle deps (#660)
* fix: fail to pre bundle deps which has css

* fix: import pre-bundle deps when pre-bundle failed
2022-11-15 10:33:11 +08:00
luhc228 af24b565a1 feat: support postcss user config (#626)
* feat: support postcss in userConfig

* feat: support postcss.config.js

* docs: optimize config

* docs: postcss

* feat: add tailwindcss example

* chore: export postcss

* docs: update postcss

* docs: update browsers desc
2022-11-15 10:33:11 +08:00
luhc228 6115c12151 feat: read browsers config by postcss-preset-env (#664) 2022-11-15 10:33:11 +08:00
ClarkXia 7b1cb86299 refactor: type dependencies (#638)
* refactor: types dependencies

* chore: types

* fix: tsconfig

* chore: optimize code

* fix: conflict
2022-11-15 10:33:00 +08:00
ClarkXia c926a0455e fix: regex rule for different package manager (#635)
* fix: regex rule for different package manager

* chore: remove log
2022-11-15 10:32:49 +08:00
luhc228 2a3dc7d547 fix: css chunk filename (#578)
* fix: css-chunk-filename

* fix: chunkFilename same as filename logic
2022-11-15 10:32:43 +08:00
NK 3e031c477b feat: miniapp (#333)
* feat(miniapp): use platform in cli to generate miniapp code

* fix: lint error

* feat(miniapp): add miniapp project

* chore: revert example code

* chore: optimize code

* feat(miniapp): migrate some packages to ice

* feat(miniapp): update swcOptions for miniapp

* chore(example): add more pages

* feat(miniapp): add miniapp runClientApp

* feat(miniapp): update compile config for miniapp

* feat(miniapp): support get app and routes config in compile

* fix(miniapp): lint warning

* feat(miniapp): support routeData/routeConfig and reduce size

* fix: lint warning

* fix: lint warning

* feat(miniapp): support global css and page css

* feat(miniapp): support css modules

* feat(miniapp): support copying assets in public dir

* feat(miniapp): support Link and getSearchParams

* feat(miniapp): use index.ts.ejs as template

* feat(miniapp): support passing params in Link

* feat(miniapp): support history in miniapp

* fix(miniapp): build without compiling server bundle

* fix(miniapp): use getRoutesConfig

* feat(miniapp): support build options like outputDir

* chore(miniapp): update miniapp examples

* feat(miniapp): support html tags

* feat(miniapp): remove taro related code

* fix(miniapp): some cases

* fix(miniapp): use require.resolve to get page loader

* chore(miniapp): update lock

* fix(miniapp): page loader check this name

* chore(miniapp): add devDependencies

* chore: update index ejs template

* refactor(miniapp): update multiple platforms logic in ice

* chore: lock regenerator-runtime version

* chore(miniapp): add ali miniapp build command

* fix(ice): set default value of platform to web

* fix(runtime): remove duplicated denpdencies

* chore: set default value of platform to web

* feat(miniapp): registerSerialization when plugin activated

* test(miniapp): suit for vitest

* chore(miniapp): add webpack-sources to bundles

* chore: clean code

* chore(miniapp): remove jest config file

* fix: lint error

* fix: add default value of outputDir

* refactor(miniapp): remove openBrowser from logMessage

* chore(miniapp): remove unnecessary ts-ignore

* fix: type error

* chore(miniapp): rename Adapter to adapter

* chore(miniapp): update interface name

* refactor: use plugins to support miniapp

* chore(miniapp): update example name

* fix: update dependencies

* feat(miniapp): add platform check in cli

* chore: update lock

* fix: remove useless platform option

* fix: lint warning

* fix: lint warning

* test: use src code in tests

* chore(miniapp): remove ||= operators

* fix(miniapp): exclude miniapp-runtime esm code

* fix(ice-cli): update platform for build command
2022-11-15 10:32:43 +08:00
ClarkXia 9ad5e5b5c1 feat: pre bundle dependencies (#466)
* feat: precompile unplugin

* feat: prebundle mini-css-extract-plugin

* chore: update lock

* chore: update webpack version

* chore: update dependencies

* chore: update terser version

* fix: update lock

* fix: prepack webpack-dev-server

* feat: prebundle react-refresh-webpack-plugin

* fix: optimize code

* fix: prepack

* fix: source map error

* fix: update scripts
2022-11-15 10:30:00 +08:00
ClarkXia 26a204945a fix: import css from node_modules (#482) 2022-11-15 10:27:18 +08:00
ClarkXia 78e876ddb6 feat: lazy compilation (#215)
* feat: support lazy compilation

* feat: support exprimental

* fix: optimize code

* chore: optimize code

* chore: update lock
2022-11-15 10:24:43 +08:00
ClarkXia 9fa14f3aa2 feat: split chunks (#163)
* feat: split chunks

* chore: lock

* fix: runtime chunk

* fix: runtimeChunk
2022-11-14 19:17:27 +08:00
luhc228 6480a214b9 feat: add rpx2vw postcss plugin (#193) 2022-11-14 19:17:25 +08:00
ClarkXia 7305be723a feat: pre bundle for dependencies (#138)
* feat: rename folder

* feat: bundle scripts

* feat: ncc

* fix: pre bundle

* chore: optimize code

* chore: terser options

* fix: test case

* fix: package fail to pack

* feat: tsChecker and eslint

* chore: ts type

* fix: pack scripts

* fix: same webpack instance (#146)

* fix: same instance of webpack

* fix: same instance of webpack
2022-11-14 19:16:51 +08:00