style: 💄 css not inline
This commit is contained in:
parent
7cd45d3539
commit
2dd9578257
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,5 +9,6 @@
|
|||||||
|
|
||||||
/node_modules/
|
/node_modules/
|
||||||
/js/
|
/js/
|
||||||
|
/css/
|
||||||
|
|
||||||
/build/
|
/build/
|
||||||
|
@ -27,6 +27,7 @@ class PageController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function index(): TemplateResponse {
|
public function index(): TemplateResponse {
|
||||||
Util::addScript(Application::APP_ID, Application::APP_ID.'-main');
|
Util::addScript(Application::APP_ID, Application::APP_ID.'-main');
|
||||||
|
Util::addStyle(Application::APP_ID, Application::APP_ID.'-main');
|
||||||
|
|
||||||
$csp = new ContentSecurityPolicy();
|
$csp = new ContentSecurityPolicy();
|
||||||
$csp->addAllowedImageDomain('*');
|
$csp->addAllowedImageDomain('*');
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vue-tsc && vite build --mode production",
|
"build": "vue-tsc && vite build",
|
||||||
"dev": "vite build --mode development",
|
"dev": "vite --mode development build",
|
||||||
"dev:watch": "vite build --mode development --watch",
|
"dev:watch": "vite --mode development build --watch",
|
||||||
"watch": "npm run dev:watch",
|
"watch": "npm run dev:watch",
|
||||||
"lint": "eslint src",
|
"lint": "eslint src",
|
||||||
"lint:fix": "eslint src --fix",
|
"lint:fix": "eslint src --fix",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { join, resolve } from 'path'
|
||||||
import { createAppConfig } from '@nextcloud/vite-config'
|
import { createAppConfig } from '@nextcloud/vite-config'
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import vueDevTools from 'vite-plugin-vue-devtools'
|
import vueDevTools from 'vite-plugin-vue-devtools'
|
||||||
@ -14,7 +15,11 @@ const config = defineConfig(({ mode }) => ({
|
|||||||
|
|
||||||
export default createAppConfig(
|
export default createAppConfig(
|
||||||
{
|
{
|
||||||
main: 'src/main.ts',
|
main: resolve(join('src', 'main.ts')),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
createEmptyCSSEntryPoints: true,
|
||||||
|
thirdPartyLicense: false,
|
||||||
},
|
},
|
||||||
{ config, inlineCSS: true },
|
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user