Razzle: 创建服务器呈现的通用JavaScript应用,无需配置
创建通用的React, Reason-React, Preact, Inferno,和Rax应用,无需配置Patches
Assets
2
Minor Changes
- Feat(razzle): add support for server-only builds: 2602007
Patches
-
Dev-infra: add jest html reporting, assert at the end so cleanup runs, add razzle_meta: b01531e
-
Example(with-elm): fix configuration: 0283896
-
Examples(with-reason-react): use hackernews example: 5413759
-
Feat(razzle): allow toggling usage of null loader for node target: 48874d6
-
Dev-infra: add jest-html-reporters, separate complex example tests: 17611f1
-
Dev-infra: better test type separation: 02a6273
Assets
2
Patches
- Fix(babel-preset-razzle): make commonjs wrapper plugin receive the correct args: 4483c71
Assets
2
Assets
2
Patches
Assets
2
Minor Changes
- Feat(razzle): add webpackOptions.terserPluginOptions in node production: df4b895
Assets
2
Minor Changes
- Dev-infra: add resolutionsYalc so sub deps are replaced aswell: 201f4d9
- Dev-infra: add script in dev: 84a04e7
- Fix(examples): working with monorepo example,: c03422e
- Fix(examples): monorepo example running as expected: e3cd54d
- Fix(examples): fix static dir in with-monorepo example: 5cd7bbf
- Fix(examples): upgrade react and react-dom in examples: 5668fe8
- Dev-infra: update yarn.lock: 30d0324
Patches
Assets
2
Fix wrong stable release
Assets
2
Patches
- Fix(razzle): Use 'request' when externalizing modules for node externals.: 3590e5b
Assets
2
Major Changes
- Examples: remove with-react-loadable since it is not maintained: e9a8a00
- Feat(razzle): add more webpackOptions, remove cacheable: 9316a9d
Minor Changes
- Feat(razzle): make WatchIgnore plugin paths overridable: 2d96bcc
- Feat(razzle): Support for not released plugins in razzle.config.js: e1c73ad
- Fix(razzle-plugins): add css-loader dependency: c19b452
- Feat: add modifyBabelPreset config hooks: 8bcbded
Patches
Assets
2
Minor Changes
Assets
2
Major Changes
- Chore: update to latest typescript, ts-loader, and fork-ts-checker-webpack-plugin: 002b1db
- Fix(razzle): switch to webpack-assets-manifest: 99170dc
- Fix(example): use new assets manifest: 5a3872f
- Fix(examples): fix all examples used in tests: f89558f
- Dev-infra: fix test: 130e261
- Dev-infra: fix test: ba96fc9
- Dev-infra: fix test: 4b5ca53
- Fix(examples): fix syntaxerror and new assets handling: b8c9a9c
- Fix(examples): update more examples to use new assets manifest: 4ed6730
- Fix(razzle-plugin-typescript): use glob in eslint.files: e83b696
Patches
Assets
2
Patches
Assets
2
Patches
Assets
2
Patches
Assets
2
fivethreeo released this
Minor Changes
- Fix: use static file for bundle analyzer: 9eba33b
Patches
- Fix: wrong json config: 573c3b0
Assets
2
fivethreeo released this
Patches
- Fix: add back readme that got lost: da7a271
- Fix(razzle-dev-utils): setPorts did not set port in async: 878520a
- Fix: razzle allow toggling warnings as errors: bb07b9e
- Dev-infra: disable warnings as errors: 6bc9520
- Chore: update yarn lock: 4bf0ac1
- Fix: keep node 8 compatibility: 6b74b84
- Fix(razzle): use paths.appPath with libIdent: d19436b
Assets
2
fivethreeo released this
Patches
- Fix: upgrade all the package deps: dea5501
Assets
2
fivethreeo released this
Patches
- Fix(razle-dev-utills): add missing webpack-dev-server dependency: 417cff5
Assets
2
fivethreeo released this
Patches
- Fix(create-razzle-app): respect branch in install: 22e00e9
Assets
2
fivethreeo released this
Here are some of the fixes and new features.
feat(razzle): make configuration promise based
fix: deprecate createConfig so plugin tests have time to update before next major release
feat(razzle): add support for typescript to razzle core
fix(css): make sure only one mini-css-extract-plugin is present
fix(razzle): fix issue with DEV_PORT env var and client only razzle start
feat(razzle): support paths in jsconfig and tsconfig
feat(create-razzle-app): add support for npm/github/git/file example templates
feat(less/scss): support postcss.config js and modules in less and scss plugin
feat(razzle): add support for postcss.config.js
feat(razzle): add experimental support for react-refresh
feat(examples): add with-single-exposed-port example
Assets
2
fivethreeo released this
Patches
- Fix(scss): add mini-css-extract-plugin to peerDependencies to fix npm install: 0188113
Assets
2
Assets
2
fivethreeo released this
Patches
- Fix: complement CSS loader setup with pre-3.1 configuration
Assets
2
Long time no see
A new release after a long time, but no worries we have ci/cd for deployments now so we can tag a new release any time that we want.
and we are working on razzle to make it the best SSR solution that you may ever find on Github.
if you need any new features or you had any questions
What's new
- SPA mode
In addition to universal/isomorphic applications, Razzle can build a single page (or client-only) applications. To do this, you can removeindex.js
andserver.js
thenindex.html
file inside the public folder at the end pass--type=spa
to yourpackage.json
's scripts like so:
"scripts": {
- "start": "razzle start",
+ "start": "razzle start --type=spa",
- "build": "razzle build",
+ "build": "razzle build --type=spa",
"test": "razzle test --env=jsdom",
- "start:prod": "NODE_ENV=production node build/server.js"
+ "start:prod": "serve -s build/public"
}
https://github.com/jaredpalmer/razzle#build-types
2. Absolute Imports
create a new jsconfig.json
file in root of the project
{
"compilerOptions": {
"baseUrl": "src"
},
"include": ["src"]
}
and then you can use import files directly from src directory:
import Button 'components/Button';
(also works with typescript and tsconfig.json
)
razzle-plugin-scss
: now you can use CSS modules with sass files
import styles from './home.module.scss'
- Expanding Environment Variables In .env
# .env file
DOMAIN=www.example.com
RAZZLE_FOO=$DOMAIN/foo
RAZZLE_BAR=$DOMAIN/bar
Note
Minor Changes and Patches are not complete in this list there many more, some of them listed here
Minor Changes
Patches
- Fix(scss-plugin): use onlyLocals option: #1254
Credits
Huge thanks to @fivethreeo for helping!
Assets
2
nimaa77 released this
Initial release
jaredpalmer released this
Assets
2
jaredpalmer released this
Assets
2
- Added missing babel/runtime dep
- Removed polyfill and enabled treeshaking in prod
jaredpalmer released this
Assets
2
v3.0.0-alpha.0
v2.4.0
jaredpalmer released this
Minor Release
tl;dr
- Added pretty node errors!
- Preserve the full
--inspect=
flag as passed to yarn start - Added
testEnvironmentOptions
to supportedKeys for Jest - Added mdx-plugin
- Added support for function plugins
- Introduce
config.modifyBabelOptions
so Razzle can be used in really interesting places
Commits
- 63159f3 - Make readme's match (@jaredpalmer)
- e478621 - remove package-lock.json (@jaredpalmer)
- 39ea3a6 - Fix .mjs issue with GraphQL 0.13.2 (#715) (@ericclemmons)
- bbab21a - Mdx improve (#712) (@jeetiss)
- e07830c - Add mdx loader (#711) (@jeetiss)
- e199219 - Add support for function as plugin (#704) (@ambar)
- 5b1ff8c - Introduce config.modifyBabelOptions (#702) (@ericvicenti)
- 5475aef - Update README.md (@jaredpalmer)
- e77c8e7 - Erik Engi added to the contributors section (#700) (@kireerik)
- 63a8b5c - Add documentation for CSS Modules (#694) (@alexparish)
- c490929 - Ignore column from source map and only use pretty errors if file is read (#696) (@crosscompile)
- b4f9898 - Add pretty node errors (#691) (@crosscompile)
- 72934d9 - fix koa hmr (#693) (@ambar)
- 8a35624 - Adding testEnvironmentOptions to supportedKeys for Jest (#678) (@bdo)
- 9a58a71 - Add polka example (#520) (@flagello)
- 05d795e - added example razzle + react router 3 (#539) (@davidnguyen179)
- db7b28b - preserve the full --inspect= flag as passed to yarn start (#660) (@gregmartyn)
- d2deecc - Fix Elm example (#661) (@faheempatel)
- 6aee5de - Bump babel-loader to remove incompatibility warning with Webpack 4. (#659) (@daveli)
v2.2.0
jaredpalmer released this
Minor Release
- Bump to Jest 23
- Started on plugin documentation
- Squatting/stubbed future plugins on npm
v2.1.0
jaredpalmer released this
Security Patch
👮
🔐
- Upgraded to Jest 22 (patching some security vulnerabilities). Thank you @benjaminhobbs !
Other Improvements
🚀
- Upgraded to babel-eslint v8
- Fixed instructions in react-native-web example README.md
- Removed some redundant deps
v2.0.4
jaredpalmer released this
Bug fix
- Fix Typescript Plugin to account for removal of
thread-loader
v2.0.3
jaredpalmer released this
Speed Improvements for TypeScript users
⚡️
🔥
🔋
The new TypeScript plugin now includes the perf optimizations utilized by the Microsoft Outlook team.
// only run if (target === 'web)
if (dev) {
// As suggested by Microsoft's Outlook team, these optimizations
// crank up Webpack x TypeScript perf.
// @see https://medium.com/@kenneth_chau/speeding-up-webpack-typescript-incremental-builds-by-7x-3912ba4c1d15
config.output.pathinfo = false;
config.optimization = {
removeAvailableModules: false,
removeEmptyChunks: false,
splitChunks: false,
};
}
v2.0.2
jaredpalmer released this
Patch Release
- Removed
thread-loader
frombabel-loader
due to report perf degradations.
1.0.1
jaredpalmer released this
1.0.1
This release is simply for posterity, please use v2.
v2.0.0-alpha.8
jaredpalmer released this
Upgrades!
- New Koa and Hyperapp examples
- New logger!
- Fixed assets.json not found bug.
v0.8.14
jaredpalmer released this
Lock in Webpack 3.x
- This will eventually be 1.0
- From here on, the primary work will be done on 2.0 (Webpack 4).
v2.0.0-alpha.5
jaredpalmer released this
Patch Release
- Bumped deps. Now using Webpack 4.2.x and latest mini-css plugins
- Fixed HMR w/Webpack 4 by passing
multiStep
flag on the client
v2.0.0-alpha.3
jaredpalmer released this
The good news
- Webpack 4.2.0 motherforkas.
The bad news (breaking changes)
- BREAKING: Babel loader setup now uses
thread-loader
andbabel-loader
together
More good news
- A Gatsby-like plugin system is coming for v2. This will likely allow you to forego the pain of rewriting some of your webpack modifications.
Watchers:131 |
Star:9995 |
Fork:841 |
创建时间: 2016-02-11 02:34:27 |
最后Commits: 昨天 |
分类:其它杂项 / JavaScript开发 |
收录时间:2017-05-23 09:19:18 |
4437db3
Compare
Patches