@nitro-web/webpack 0.3.6 → 0.3.8
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack.config.d.ts","sourceRoot":"","sources":["../webpack.config.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webpack.config.d.ts","sourceRoot":"","sources":["../webpack.config.js"],"names":[],"mappings":"AA0CO,yCAWG,QAAG,EAAE,SAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyRlB"}
|
package/webpack.config.js
CHANGED
|
@@ -19,6 +19,7 @@ import { createRequire } from 'module'
|
|
|
19
19
|
import { getDirectories } from 'nitro-web/util'
|
|
20
20
|
|
|
21
21
|
const _require = createRequire(import.meta.url)
|
|
22
|
+
|
|
22
23
|
const isBuild = process.env.NODE_ENV == 'production'
|
|
23
24
|
const nitroVersion = _require('./package.json').version
|
|
24
25
|
|
|
@@ -306,7 +307,7 @@ export const getConfig = (config) => {
|
|
|
306
307
|
}),
|
|
307
308
|
new MiniCssExtractPlugin({ filename: `assets/bundle.[name]${isBuild ? '.[contenthash]' : ''}.css` }),
|
|
308
309
|
new HtmlWebpackPlugin({ template: clientDir + 'index.html', filename: distDir + 'index.html' }),
|
|
309
|
-
new InterpolateHtmlPlugin(HtmlWebpackPlugin, { PUBLIC_PATH: publicPathResolved, NAME: name }),
|
|
310
|
+
new InterpolateHtmlPlugin(HtmlWebpackPlugin, { PUBLIC_PATH: publicPathResolved, NAME: name, THEME: client?.theme || 'system' }),
|
|
310
311
|
new CleanTerminalPlugin({ skipFirstRun: true }),
|
|
311
312
|
// !isBuild && new ReactRefreshWebpackPlugin({ overlay: false }),
|
|
312
313
|
].filter(Boolean),
|