Skip to content

Commit

Permalink
chore: dace-router -> dase-router
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongzhi107 committed Nov 27, 2019
1 parent fa6f6e3 commit b6d961a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"commander": "^2.20.0",
"cookie-parser": "^1.4.4",
"css-loader": "^3.0.0",
"dace-router": "^1.0.0",
"dase-router": "^1.0.0",
"dotenv": "^8.0.0",
"eslint": "^5.16.0",
"eslint-config-qunar": "^5.1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/defaultEnv.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
// 路由默认使用的首页文件名称
DACE_INDEX: 'index',

// 使用服务器端渲染
// 是否启用服务器端渲染
DACE_SSR: 'true',

// 输出的 script 标签是否使用 crossorigin 属性
Expand Down Expand Up @@ -68,7 +68,7 @@ export default {
// 浏览器端编译入口文件位置
DACE_PATH_CLIENT_ENTRY: 'src/client.js',

// 自定义路由文件位置
// 请求代理路由文件位置
DACE_PATH_ROUTES: '',

// node_modules 目录位置
Expand Down
3 changes: 2 additions & 1 deletion src/webpack/config/createConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,10 @@ export default ({

config.externals = [
nodeExternals({
// 白名单中的包会包含在编译后的包里
whitelist: [
IS_DEV ? 'webpack/hot/poll?300' : null,
/\/dace\//, // <-- #13
/dace/, // <-- #13
/\.(eot|woff|woff2|ttf|otf)$/,
/\.(svg|png|jpg|jpeg|gif|ico)$/,
/\.(mp4|mp3|ogg|swf|webp)$/,
Expand Down

0 comments on commit b6d961a

Please sign in to comment.