=======
- [Enhancement] 应开发者要求,控制台输出信息改回英文版本。
- [Enhancement] 调整 ServiceWorker 的更新机制。ISSUE #212 PR
- [Fix] 修复使用 Koa 服务器时,precache-manifest.xxx.js (workbox 3 新增的预缓存文件) 无法加载的问题。ISSUE #210 PR
- [Fix] 将依赖的 webpack-hot-middleware 的版本号固定在
~2.22.0
,因为新发布的2.23.0
会导致运行异常无法启动
BREAK CHANGE
- [Upgrade] 升级 Workbox 依赖到 3.x,同时不再支持 2.x 的模板语法
- 模板 (
core/service-worker.js
) 的修改方法见 #188 - 对于升级了 lavas-core-vue 但是仍然使用旧版本模板的用户,Lavas 会弹出升级的提示
- 如果想继续使用 workbox 2.x,可以把 lavas-core-vue 的版本固定在 1.1.x (1.1.13 是最后一个版本)
- 模板 (
- [Feature] 增加 Service Worker 的启用/禁用功能,并且 默认禁用。需要在
lavas.config.js
的serviceWorker
配置项增加enable: true
来开启该功能 - [Upgrade] 将命令行输出的日志提示修改为中文
- [Fix] 将依赖的 workbox-chain 的版本号固定在
4.8.0
,因为新版本会出现不稳定的错误
- [Fix] Fix a problem causing rendering failure (#147)
- [Fix] Fix a problem when using lavas-core-vue without lavas-cli (#148)
- [Fix] Remove
.babelrc
in templates. Usebuild.babel
option inlavas.config.js
.
- [Fix] Add postcss-loader to all of CSS preprocessers' rules. (#134)
- [Feature] Add
route.redirect
option inlavas.config.js
.
- [Feature] Add lavas-core-vue version to
lavas -v
(#126)
- [Fix] Fix a problem caused by
<transition>
&<keep-alive>
. (#112)
- [Fix] Update vue-loader to 14.2.2. (#114)
- [Fix] Fix routing generation problems when recursive directories appeared in
/pages
- [Fix] Fix problems when running
lavas build
without runninglavas dev
.
- [Optimization] Less loading time in SPA mode. ([#73][i73])
- [Fix] Resume supporting
context.type === 'base'
inextend
function inlavas.config.js
- [Fix] Change
targets.node
fromcurrent
to"6.9"
in.babelrc
- [Fix] Fix problems when executing
lavas start
and ssr = true - [Fix] Support workbox v2.1.3
- [Fix] Fix 'supportHistory is undefined' when ssr = false and pageTransition = fade (by default)
- [Fix] Support page name contains
_
(about_us.vue
) - [Fix] Resume reference to
sw-register.js
indist/index.html
when ssr = false
- [Info] Bump version to 1.1
- [Feature] Support
spa.html.tmpl
andssr.html.tmpl
. (#40) - [Fix] remove
async
andawait
in.lavas/build.js
- [Feature] Use progress-bar-webpack-plugin for better console logging effect. (#55)
- [Feature] Use webpack-chain and add
build.extendWithWebpackChain()
inlavas.config.js
. (#76) - [Feature] Optimize building process. (#77)
- [Feature] Support MPA (multi entries with ssr:
false
)
- [Fix] Use CommonsChunkPlugin correctly. (#38)
- [Fix] Hotreload will not reload infinitely now. (#43 #36)
- [Fix] New version of
core/index.html.tmpl
can work with older version of lavas correctly (#52) - [Feature] Split test fixture into multiple projects, eg. a
simple
folder is used by some simple test cases.
- [Feature] Allow developers use custom variables in
core/index.html.tmpl
- [Fix] Developers with old version of lavas (≤ 2.2.2) can use
lavas dev
correctly.
- [Feature] Add
config
option tolavas dev
,lavas start
andlavas build
. - [Feature] Lavas internal middlewares such as
static
,service-worker
,ssr
,error
andfavicon
can be toggled by callingexpress/koaMiddleware()
. - [Feature] Provide
render()
function so that a custom SSR middleware can be used in SSR mode.
- [Fix] In development mode, if we detect the
publicPath
is from CDN (eg. starts withhttp(s)://
or//
), a default path/
will be used instead. But in production mode, the CDNpublicPath
will be used as assets' prefix correctly.
- [Feature] Add
build.skeleton
in config. In SPA, you can toggle skeleton feature bybuild.skeleton.enable
and changecore/Skeleton.vue
withbuild.skeleton.path
. - [Feature] Inject some lines in
core/service-worker.js
:- Auto prefix when using
publicPath
. eg.importScripts('${publicPath}static/js/workbox-sw.prod.v2.1.2.js');
- Auto add
workboxSW.router.registerNavigationRoute();
at the end of the file. You don't need to modify when switching betweenSSR
andSPA
manually.
- Auto prefix when using
- [Fix] Bug in switching from
SPA
toSSR
.
- [Fix]
cssExtract
in production mode. - [Fix] Update to [email protected].
- [Breaking Change] Remove
entry
in config.
- [Fix] Move
babel
option intobuild
inlavas.config.js
. - [Feature] Use
[email protected]
which has following changes:- We don't need putting
importScript()
in front ofservice-worker.js
any more. - Precache all assets generated by the webpack compilation. Use
chunks
instead ofglobDirectory
andglobPatterns
. This will also fix the problem in development mode withwebpack-dev-middleware
.
- We don't need putting
- [Fix] Make build works when BUILD_PATH in
lavas.config.js
changes to other directory. - [Fix] Move manifest from
lavas.config.js
to single JSON file. - [Feature] Generate
dist/lavas/routes.json
which contains all router rules.
- [Fix] Those server deps required by server-side middlewares shouldn't exist in client side(main.[hash].js) and vice versa.
- [Lavas Core] Simplify
dist/lavas/config.json
after production building, only preserve some runtime-aware options.// dist/lavas/config.json { build: { publicPath: true, compress: true }, entry: true, middleware: true, router: true, errorHandler: true, manifest: true, serviceWorker: { swDest: true } }
- [Fix] Make
config.defines
works and add relative test cases. - [Fix] Merge middlewares defined in config correctly. Use
lodash.merge
to concat two arrays during merging. - [Fix]
config.router
use different strategies under the following scenes:- Apply
rewrite.from
toroute.path
. - Apply
routes.pattern
toroute.fullPath
.
- Apply
- [Fix] Simplify
dist/config.json
after production building, only preserve some required options.
- Use coveralls for keeping test coverage history. Also integrate it with travis.
- [Lavas CLI] Add
lavas dev/start/build
command. - [Lavas Core] Require some Koa's deps such as some middlewares conditionally so that it can run in node < 7.6.0. If users want to use
koaMiddleware
, they must upgrade their node. - Add a common test case. It will test for Koa when node >= 7.6.0 and express otherwise.
- [Fix] Use [email protected] for Node 5.x. The latest vue-loader already drops support for Node 4.x.ISSUE
- [Fix] express-error.js use
302
rather than301
as redirect status code. - [Fix] Rebuild when lavas.config.js changed.