@dword-design/base-config-nuxt 3.1.0 → 3.1.1
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.
|
@@ -28,7 +28,7 @@ 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: {},
|
|
@@ -40,8 +40,10 @@ async function _default() {
|
|
|
40
40
|
serverMiddleware: [],
|
|
41
41
|
userScalable: true
|
|
42
42
|
};
|
|
43
|
+
const localConfig = (0, _safeRequire.default)(_path.default.join(this.options.rootDir, 'nuxt.config.js')) || {};
|
|
43
44
|
const projectConfig = { ...defaultConfig,
|
|
44
|
-
...
|
|
45
|
+
...localConfig,
|
|
46
|
+
css: [...defaultConfig.css, ...(localConfig.css || [])]
|
|
45
47
|
};
|
|
46
48
|
this.options.watch.push(_path.default.join(this.options.rootDir, 'nuxt.config.js'));
|
|
47
49
|
this.options.publicRuntimeConfig.name = projectConfig.name;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/base-config-nuxt",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
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",
|
|
@@ -75,13 +76,5 @@
|
|
|
75
76
|
},
|
|
76
77
|
"publishConfig": {
|
|
77
78
|
"access": "public"
|
|
78
|
-
},
|
|
79
|
-
"baseConfig": {
|
|
80
|
-
"depcheckConfig": {
|
|
81
|
-
"ignoreMatches": [
|
|
82
|
-
"sass",
|
|
83
|
-
"sass-loader"
|
|
84
|
-
]
|
|
85
|
-
}
|
|
86
79
|
}
|
|
87
80
|
}
|