diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml deleted file mode 100644 index 964da66..0000000 --- a/.github/workflows/preview.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: preview PR -on: - pull_request: - types: - - opened - - reopened - - synchronize - - closed - paths: - - css/** - - html/** - - js/** - - build.js - - .github/workflows/preview.yml -concurrency: preview-${{ github.ref }} -jobs: - deploy-preview: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Install - run: npm install - - name: Build - run: npm run build - - name: Deploy preview - uses: rossjrw/pr-preview-action@v1 - with: - source-dir: dist diff --git a/build.js b/build.js index 5f091e5..8448bb9 100644 --- a/build.js +++ b/build.js @@ -16,6 +16,16 @@ esbuild.buildSync({ target: dev ? "esnext" : "es5", }); +esbuild.buildSync({ + entryPoints: ["js/resizeIframe.js"], + outdir: "dist", + bundle: true, + minify: !dev, + sourcemap: dev ? "inline" : true, + target: dev ? "esnext" : "es5", + globalName: "resizeIframe", +}); + ["interwikiFrame", "styleFrame", "index"].forEach(function (frame) { fs.copyFileSync("html/" + frame + ".html", "dist/" + frame + ".html"); }); diff --git a/html/interwikiFrame.html b/html/interwikiFrame.html index df795ea..eb48d2e 100644 --- a/html/interwikiFrame.html +++ b/html/interwikiFrame.html @@ -1,17 +1,20 @@ -
- - - + + - -