create-packer 1.24.0 → 1.24.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.24.0",
3
+ "version": "1.24.2",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -8,6 +8,6 @@
8
8
  </head>
9
9
  <body>
10
10
  <div id="root"></div>
11
- <script type="module" src="/src/main.tsx"></script>
11
+ <script type="module" src="main.tsx"></script>
12
12
  </body>
13
13
  </html>
@@ -1,4 +1,3 @@
1
- import path from 'path'
2
1
  import { defineConfig, loadEnv } from 'vite'
3
2
  import react from '@vitejs/plugin-react'
4
3
  import svgr from 'vite-plugin-svgr'
@@ -20,7 +19,7 @@ export default defineConfig(({ command, mode }) => {
20
19
  }
21
20
  },
22
21
  stylelint: {
23
- lintCommand: 'stylelint **/*.{less,scss,less}',
22
+ lintCommand: 'stylelint **/*.{css,scss,less}',
24
23
  dev: {
25
24
  logLevel: ['error']
26
25
  }
@@ -37,7 +36,7 @@ export default defineConfig(({ command, mode }) => {
37
36
  plugins,
38
37
  resolve: {
39
38
  alias: {
40
- '@': path.join(__dirname, 'src')
39
+ '@': __dirname
41
40
  }
42
41
  },
43
42
  esbuild: {
@@ -8,6 +8,6 @@
8
8
  </head>
9
9
  <body>
10
10
  <div id="app"></div>
11
- <script type="module" src="/main.ts"></script>
11
+ <script type="module" src="main.ts"></script>
12
12
  </body>
13
13
  </html>
@@ -1,6 +1,6 @@
1
1
  /** @type {import('tailwindcss').Config} */
2
2
  module.exports = {
3
- content: ['./index.html', './app.vue', './pages/**/*.{vue,ts,tsx,js,jsx}', './domain/**/*.{vue,ts,tsx,js,jsx}', './components/**/*.{vue,ts,tsx,js,jsx}'],
3
+ content: ['./index.html', './app.vue', './main.ts', './pages/**/*.{vue,ts,tsx,js,jsx}', './domain/**/*.{vue,ts,tsx,js,jsx}', './components/**/*.{vue,ts,tsx,js,jsx}'],
4
4
  theme: {
5
5
  extend: {}
6
6
  },
@@ -1,4 +1,3 @@
1
- import path from 'path'
2
1
  import { defineConfig, loadEnv } from 'vite'
3
2
  import vue from '@vitejs/plugin-vue'
4
3
  import vueJsx from '@vitejs/plugin-vue-jsx'
@@ -23,7 +22,7 @@ export default defineConfig(({ command, mode }) => {
23
22
  }
24
23
  },
25
24
  stylelint: {
26
- lintCommand: 'stylelint **/*.{less,scss,less}',
25
+ lintCommand: 'stylelint **/*.{less,scss,less,vue}',
27
26
  dev: {
28
27
  logLevel: ['error']
29
28
  }
@@ -44,7 +43,7 @@ export default defineConfig(({ command, mode }) => {
44
43
  plugins,
45
44
  resolve: {
46
45
  alias: {
47
- '@': path.join(__dirname, 'src')
46
+ '@': __dirname
48
47
  }
49
48
  },
50
49
  esbuild: {
@@ -19,7 +19,7 @@ export default defineConfig(({ mode }) => {
19
19
  }
20
20
  },
21
21
  stylelint: {
22
- lintCommand: 'stylelint ./src/**/*.{less,scss,less}',
22
+ lintCommand: 'stylelint ./src/**/*.{css,scss,less}',
23
23
  dev: {
24
24
  logLevel: ['error']
25
25
  }