eddev 0.1.33-beta-1 → 0.1.33-beta-2

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.
@@ -57,9 +57,6 @@ function ContentBlocks(props) {
57
57
  return [ctx, block, blockNode];
58
58
  });
59
59
  }, [props.blocks]);
60
- (0, react_1.useEffect)(function () {
61
- console.log("RESTART CONTENT BLOCKS");
62
- }, []);
63
60
  var layout = (0, react_1.useMemo)(function () {
64
61
  return blocks.filter(Boolean).map(function (_a, index) {
65
62
  var ctx = _a[0], block = _a[1], blockNode = _a[2];
@@ -76,7 +76,7 @@ var mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin
76
76
  var autoprefixer_1 = __importDefault(require("autoprefixer"));
77
77
  function getWebpackConfig(opts) {
78
78
  return __awaiter(this, void 0, void 0, function () {
79
- var compiling, ALIAS, ENTRY, PLUGINS, RULES, DEFINES, VIRTUAL_MODULES, EXTERNALS, virtualModules, isServerless, isBrowser, isSSR, isDev, entryDir, distSuffix, outputFolder, loadableManifestFile, writeVirtualModule, updateTemplateRouter, templateLookupPattern, _a, updateBlocksManifest, blockLookupManifest, _b;
79
+ var compiling, ALIAS, ENTRY, PLUGINS, RULES, DEFINES, VIRTUAL_MODULES, EXTERNALS, virtualModules, isServerless, isBrowser, isSSR, isDev, entryDir, distSuffix, outputFolder, loadableManifestFile, writeVirtualModule, updateTemplateRouter, templateLookupPattern, _a, updateBlocksManifest, blockLookupManifest, _b, buildID;
80
80
  return __generator(this, function (_c) {
81
81
  switch (_c.label) {
82
82
  case 0:
@@ -360,6 +360,7 @@ function getWebpackConfig(opts) {
360
360
  if (opts.isAdmin) {
361
361
  EXTERNALS["react"] = "React";
362
362
  }
363
+ buildID = Date.now();
363
364
  return [2 /*return*/, {
364
365
  mode: opts.mode,
365
366
  context: opts.baseDirectory,
@@ -372,7 +373,8 @@ function getWebpackConfig(opts) {
372
373
  // chunkIds: "named",
373
374
  },
374
375
  output: {
375
- filename: "[name].".concat(opts.isAdmin ? "admin" : "frontend", ".js"),
376
+ filename: "[name].".concat(opts.isAdmin ? "admin" : "frontend", ".js?v=").concat(buildID),
377
+ chunkFilename: "[name].".concat(opts.isAdmin ? "admin" : "frontend", ".js?v=").concat(buildID),
376
378
  // publicPath: isDev ? `//127.0.0.1:${opts.hotPort}/` : `/wp-content/themes/${opts.themeName}/dist/${distSuffix}/`,
377
379
  publicPath: "/wp-content/themes/".concat(opts.themeName, "/dist/").concat(distSuffix, "/"),
378
380
  path: outputFolder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "0.1.33-beta-1",
3
+ "version": "0.1.33-beta-2",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "bin": {