remove commented out code

This commit is contained in:
Bruno Windels 2021-12-09 18:15:22 +01:00
parent 0ec86b6dc1
commit ba84387722

View file

@ -1,5 +1,4 @@
const cssvariables = require("postcss-css-variables"); const cssvariables = require("postcss-css-variables");
//const autoprefixer = require("autoprefixer");
const flexbugsFixes = require("postcss-flexbugs-fixes"); const flexbugsFixes = require("postcss-flexbugs-fixes");
const fs = require("fs"); const fs = require("fs");
@ -7,7 +6,6 @@ const path = require("path");
const injectWebManifest = require("./scripts/build-plugins/manifest"); const injectWebManifest = require("./scripts/build-plugins/manifest");
const {injectServiceWorker, createPlaceholderValues} = require("./scripts/build-plugins/service-worker"); const {injectServiceWorker, createPlaceholderValues} = require("./scripts/build-plugins/service-worker");
// const legacyBuild = require("./scripts/build-plugins/legacy-build");
const {defineConfig} = require('vite'); const {defineConfig} = require('vite');
const version = JSON.parse(fs.readFileSync(path.join(__dirname, "package.json"), "utf8")).version; const version = JSON.parse(fs.readFileSync(path.join(__dirname, "package.json"), "utf8")).version;
@ -38,11 +36,6 @@ export default defineConfig(({mode}) => {
polyfillModulePreload: false, polyfillModulePreload: false,
}, },
plugins: [ plugins: [
// legacyBuild(scriptTagPath(path.join(__dirname, "src/platform/web/index.html"), 0), {
// "./Platform": "./LegacyPlatform"
// }, "hydrogen-legacy", [
// './legacy-polyfill',
// ]),
// important this comes before service worker // important this comes before service worker
// otherwise the manifest and the icons it refers to won't be cached // otherwise the manifest and the icons it refers to won't be cached
injectWebManifest("assets/manifest.json"), injectWebManifest("assets/manifest.json"),