@maizzle/framework 5.0.0-beta.28 → 5.0.0-beta.29
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 +1 -1
- package/src/commands/build.js +5 -3
package/package.json
CHANGED
package/src/commands/build.js
CHANGED
|
@@ -159,11 +159,11 @@ export default async (config = {}) => {
|
|
|
159
159
|
relativePath = path.relative('.', file)
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
const targetPath = path.join(
|
|
162
|
+
const targetPath = path.join(buildOutputPath, relativePath)
|
|
163
163
|
await copyFileAsync(file, targetPath)
|
|
164
164
|
}
|
|
165
165
|
} catch (error) {
|
|
166
|
-
console.error(
|
|
166
|
+
console.error('Error while processing pattern:', error)
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
/**
|
|
@@ -181,7 +181,9 @@ export default async (config = {}) => {
|
|
|
181
181
|
/**
|
|
182
182
|
* Create a list of templates to compile
|
|
183
183
|
*/
|
|
184
|
-
const extensions = outputExtensions.size > 1
|
|
184
|
+
const extensions = outputExtensions.size > 1
|
|
185
|
+
? `{${[...outputExtensions].join(',')}}`
|
|
186
|
+
: [...outputExtensions][0] || 'html'
|
|
185
187
|
|
|
186
188
|
const templatesToCompile = await fg.glob(
|
|
187
189
|
path.join(
|