@newlogic-digital/core 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -147,6 +147,8 @@ const plugin = (options = {}) => {
|
|
147
147
|
'./src/styles/*.{css,pcss,scss,sass,less,styl,stylus}',
|
148
148
|
'./src/scripts/*.{js,ts,mjs}'
|
149
149
|
]
|
150
|
+
} else {
|
151
|
+
userConfig.publicDir = userConfig.publicDir ?? false
|
150
152
|
}
|
151
153
|
|
152
154
|
if (options.mode === 'emails') {
|
@@ -160,8 +162,6 @@ const plugin = (options = {}) => {
|
|
160
162
|
|
161
163
|
const outDir = resolve(userConfig.root ?? process.cwd(), 'public')
|
162
164
|
|
163
|
-
userConfig.publicDir = userConfig.publicDir ?? false
|
164
|
-
|
165
165
|
if (userConfig.build && !userConfig.build.outDir) {
|
166
166
|
userConfig.build.outDir = outDir
|
167
167
|
}
|
package/package.json
CHANGED