@dword-design/base-config-nuxt 3.1.0 → 3.1.3

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/dist/index.js CHANGED
@@ -45,9 +45,9 @@ var _default = {
45
45
  },
46
46
  specials: [_depcheckSpecial.default]
47
47
  },
48
- editorIgnore: ['.stylelintrc.json', '.nuxt', 'dist'],
48
+ editorIgnore: ['.eslintcache', '.stylelintrc.json', '.nuxt', 'dist'],
49
49
  eslintConfig: _eslint.default,
50
- gitignore: ['/.nuxt', '/dist'],
50
+ gitignore: ['/.eslintcache', '/.nuxt', '/dist'],
51
51
  lint: _lint.default,
52
52
  npmPublish: true,
53
53
  packageConfig: {
@@ -28,20 +28,21 @@ async function _default() {
28
28
 
29
29
  const defaultConfig = {
30
30
  bodyAttrs: {},
31
- css: [],
31
+ css: [require.resolve("./style.css")],
32
32
  head: {},
33
33
  headAttrs: {},
34
34
  htmlAttrs: {},
35
35
  modules: [],
36
36
  name: 'Vue app',
37
37
  plugins: [],
38
- postcssPlugins: {},
39
38
  router: {},
40
39
  serverMiddleware: [],
41
40
  userScalable: true
42
41
  };
42
+ const localConfig = (0, _safeRequire.default)(_path.default.join(this.options.rootDir, 'nuxt.config.js')) || {};
43
43
  const projectConfig = { ...defaultConfig,
44
- ...(0, _safeRequire.default)(_path.default.join(this.options.rootDir, 'nuxt.config.js'))
44
+ ...localConfig,
45
+ css: [...defaultConfig.css, ...(localConfig.css || [])]
45
46
  };
46
47
  this.options.watch.push(_path.default.join(this.options.rootDir, 'nuxt.config.js'));
47
48
  this.options.publicRuntimeConfig.name = projectConfig.name;
@@ -84,7 +85,6 @@ async function _default() {
84
85
  this.options.head.bodyAttrs = projectConfig.bodyAttrs;
85
86
  this.options.css.push(...projectConfig.css);
86
87
  this.options.serverMiddleware.push(...projectConfig.serverMiddleware);
87
- this.options.build.postcss.plugins = projectConfig.postcssPlugins;
88
88
  this.options.components = true;
89
89
  Object.assign(this.options.router, {
90
90
  linkActiveClass: 'active',
@@ -0,0 +1,3 @@
1
+ .__nuxt-error-page {
2
+ position: static;
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base-config-nuxt",
3
- "version": "3.1.0",
3
+ "version": "3.1.3",
4
4
  "repository": "dword-design/base-config-nuxt",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",
@@ -16,7 +16,8 @@
16
16
  "lint": "base lint",
17
17
  "prepare": "base prepare",
18
18
  "prepublishOnly": "base prepublishOnly",
19
- "test": "base test"
19
+ "test": "base test",
20
+ "test:raw": "base test:raw"
20
21
  },
21
22
  "dependencies": {
22
23
  "@babel/core": "^7.16.0",
@@ -28,7 +29,7 @@
28
29
  "@dword-design/stylelint-config": "^2.0.0",
29
30
  "@nuxtjs/axios": "^5.10.3",
30
31
  "@nuxtjs/eslint-module": "^3.0.0",
31
- "@nuxtjs/i18n": "^7.0.2",
32
+ "@nuxtjs/i18n": "7.2.2",
32
33
  "@nuxtjs/stylelint-module": "^4.0.0",
33
34
  "body-parser": "^1.19.0",
34
35
  "depcheck-package-name": "^2.0.0",
@@ -65,7 +66,6 @@
65
66
  "depcheck": "^1.4.2",
66
67
  "output-files": "^2.0.0",
67
68
  "port-ready": "^0.1.0",
68
- "postcss-hexrgba": "^2.0.0",
69
69
  "stealthy-require-no-leak": "^1.0.3",
70
70
  "tree-kill-promise": "^2.0.0",
71
71
  "xml-formatter": "^2.1.2"
@@ -75,13 +75,5 @@
75
75
  },
76
76
  "publishConfig": {
77
77
  "access": "public"
78
- },
79
- "baseConfig": {
80
- "depcheckConfig": {
81
- "ignoreMatches": [
82
- "sass",
83
- "sass-loader"
84
- ]
85
- }
86
78
  }
87
79
  }