frontfire 0.8.3 → 0.8.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/FrontFire.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frontfire",
3
- "version": "0.8.3",
3
+ "version": "0.8.5",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/FrontFire.js CHANGED
@@ -61,7 +61,7 @@ export default async function frontFire( isWatch, cfg = {} )
61
61
  if ( true === isWatch )
62
62
  {
63
63
  const outerPort = serverOpts && serverOpts.hasOwnProperty( 'port' ) ? +serverOpts.port : 3000;
64
-
64
+ fse.copySync( 'src', `${rootBuildDir}${path.sep}debug` );
65
65
  fs.watchFile( `src${path.sep}index.html`, async ( curr, prev ) =>
66
66
  {
67
67
  const result = await ctx.rebuild();
@@ -122,6 +122,7 @@ export default async function frontFire( isWatch, cfg = {} )
122
122
  }
123
123
  else
124
124
  {
125
+ fse.copySync( `src${path.sep}index.html`, `${rootBuildDir}${path.sep}release${path.sep}index.html` );
125
126
  await ctx.rebuild();
126
127
  ctx.dispose();
127
128