Skip to content
Snippets Groups Projects
Commit 93081b99 authored by Bruno Windels's avatar Bruno Windels
Browse files

not legacy anymore, is it?

parent 5aa2858f
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,7 @@ async function build() { ...@@ -56,7 +56,7 @@ async function build() {
const assets = new AssetMap(targetDir); const assets = new AssetMap(targetDir);
const imageAssets = await copyFolder(path.join(projectDir, "images"), path.join(targetDir, "images")); const imageAssets = await copyFolder(path.join(projectDir, "images"), path.join(targetDir, "images"));
assets.addSubMap(imageAssets); assets.addSubMap(imageAssets);
await assets.write(`bundle.js`, await buildJsLegacy("src/main.js", assets, ["src/polyfill.js"])); await assets.write(`bundle.js`, await buildJs("src/main.js", assets, ["src/polyfill.js"]));
await assets.write(`bundle.css`, await buildCss("css/main.css", targetDir, assets)); await assets.write(`bundle.css`, await buildCss("css/main.css", targetDir, assets));
await assets.writeUnhashed(".well-known/apple-app-site-association", buildAppleAssociatedAppsFile(createClients())); await assets.writeUnhashed(".well-known/apple-app-site-association", buildAppleAssociatedAppsFile(createClients()));
await assets.writeUnhashed("index.html", await buildHtml(assets)); await assets.writeUnhashed("index.html", await buildHtml(assets));
...@@ -88,7 +88,7 @@ function createReplaceUrlPlugin(assets) { ...@@ -88,7 +88,7 @@ function createReplaceUrlPlugin(assets) {
return replace(replacements); return replace(replacements);
} }
async function buildJsLegacy(mainFile, assets, extraFiles = []) { async function buildJs(mainFile, assets, extraFiles = []) {
// compile down to whatever IE 11 needs // compile down to whatever IE 11 needs
const babelPlugin = babel.babel({ const babelPlugin = babel.babel({
babelHelpers: 'bundled', babelHelpers: 'bundled',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment