@nitro-web/webpack 0.0.200 → 0.0.202

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitro-web/webpack",
3
- "version": "0.0.200",
3
+ "version": "0.0.202",
4
4
  "repository": "github:boycce/nitro-web",
5
5
  "homepage": "https://boycce.github.io/nitro-web/",
6
6
  "main": "./webpack.config.js",
@@ -1 +1 @@
1
- {"version":3,"file":"webpack.config.d.ts","sourceRoot":"","sources":["../webpack.config.js"],"names":[],"mappings":"AAyCO,yCAWG,QAAG,EAAE,SAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwRlB"}
1
+ {"version":3,"file":"webpack.config.d.ts","sourceRoot":"","sources":["../webpack.config.js"],"names":[],"mappings":"AAyCO,yCAWG,QAAG,EAAE,SAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyRlB"}
package/webpack.config.js CHANGED
@@ -41,7 +41,7 @@ console.warn = (arg1, arg2, arg3, ...args) => {
41
41
  // process.traceDeprecation = true
42
42
  export const getConfig = (config) => {
43
43
  const { client, name='', pwd, env='development', homepage, publicPath, version, port=3000, portServer=3001 } = config
44
- const { clientDir, componentsDir, distDir, imgsDir } = getDirectories(path, pwd)
44
+ const { clientDir, componentsDir, distDir, imgsDir, fontsDir } = getDirectories(path, pwd)
45
45
  const publicPathResolved = getPublicPath(env, homepage, publicPath)
46
46
 
47
47
  if (env === 'development' && port === portServer) {
@@ -288,6 +288,7 @@ export const getConfig = (config) => {
288
288
  patterns: [
289
289
  { from: imgsDir + 'favicon.png', to: './favicon.png' },
290
290
  { from: imgsDir, to: './assets/imgs' },
291
+ { from: fontsDir, to: './assets/fonts' },
291
292
  ],
292
293
  }),
293
294
  new webpack.DefinePlugin({