diff --git a/playground/spa/__tests__/spa.spec.ts b/playground/spa/__tests__/spa.spec.ts index cc6422f..d0d6855 100644 --- a/playground/spa/__tests__/spa.spec.ts +++ b/playground/spa/__tests__/spa.spec.ts @@ -84,7 +84,7 @@ describe('pxtorem - width 1120', () => { test('should b_2 fontsize be 16px', async () => { const fontSize = await getFontsize('#b_2') - expect(fontSize).toBe('14px') + expect(fontSize).toBe('16px') }) test('should c_1 fontsize be half rem', async ({ rem }) => { diff --git a/playground/spa/index.html b/playground/spa/index.html index dba2dcb..2459975 100644 --- a/playground/spa/index.html +++ b/playground/spa/index.html @@ -5,7 +5,7 @@ - pxtorem-playground + pxtorem playground diff --git a/playground/spa/tailwind.config.cjs b/playground/spa/tailwind.config.cjs index 4ee898c..9f5f027 100644 --- a/playground/spa/tailwind.config.cjs +++ b/playground/spa/tailwind.config.cjs @@ -1,6 +1,6 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'], + content: [`${__dirname}/src/**/*.{js,ts,jsx,tsx}`], corePlugins: { preflight: true, }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f353cf8..dabaaf9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -70,6 +70,8 @@ importers: specifier: ^0.0.8 version: 0.0.8(vite@4.5.0)(vitest@0.34.6) + playground: {} + playground/spa: dependencies: classnames: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 2e69ba2..8a2179c 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,2 +1,2 @@ packages: - - 'playground/*' + - 'playground/**'