From d78ab3c07ea55e85ea0694b3b881bca8f778e238 Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 18 Sep 2021 09:32:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B1=8F=E5=B9=95=E9=80=82?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 1 + .env.development | 1 + package.json | 1 + postcss.config.js | 7 +++++++ public/index.html | 2 +- yarn.lock | 28 ++++++++++++++++++---------- 6 files changed, 29 insertions(+), 11 deletions(-) create mode 100644 postcss.config.js diff --git a/.env b/.env index 52151af..f864a92 100644 --- a/.env +++ b/.env @@ -1,5 +1,6 @@ NODE_ENV=development BASE_URL=/ +VUE_APP_TITLE=Jason.Chen VUE_APP_API_URL=http://api.dsp-test.shangkelian.cn/api VUE_APP_USERNAME= VUE_APP_PASSWORD= diff --git a/.env.development b/.env.development index c093552..911eb13 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,6 @@ NODE_ENV=development BASE_URL=/ +VUE_APP_TITLE=Jason.Chen VUE_APP_API_URL=http://api.dsp-test.shangkelian.cn/api VUE_APP_USERNAME=15555555555 VUE_APP_PASSWORD=123123 diff --git a/package.json b/package.json index 35e13c9..ed3b5b3 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "eslint-plugin-vue": "^7.0.0", "less": "^3.0.4", "less-loader": "^5.0.0", + "postcss-px-to-viewport": "^1.1.1", "typescript": "~4.1.5" } } diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..902730a --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,7 @@ +module.exports = { + plugins: { + 'postcss-px-to-viewport': { + viewportWidth: 375 + } + } +} diff --git a/public/index.html b/public/index.html index 3476b78..f684c89 100644 --- a/public/index.html +++ b/public/index.html @@ -8,7 +8,7 @@ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" /> - <%= htmlWebpackPlugin.options.title %> + <%= VUE_APP_TITLE %>