Minify and use cjs extension

This commit is contained in:
Tim Schaub
2022-08-29 11:51:51 -06:00
parent 219fb093c1
commit 1614a27ee1
4 changed files with 690 additions and 9 deletions

View File

@@ -5,8 +5,8 @@ import {fileURLToPath} from 'url';
const baseDir = dirname(fileURLToPath(import.meta.url));
const buildDir = path.resolve(baseDir, '../build/ol');
const fullBuildSource = path.resolve(baseDir, '../build/full/ol.js');
const fullBuildDest = path.join(buildDir, 'dist/index.js');
const fullBuildSource = path.resolve(baseDir, '../build/full/ol.cjs');
const fullBuildDest = path.join(buildDir, 'dist/index.cjs');
async function main() {
const pkg = await fse.readJSON(path.resolve(baseDir, '../package.json'));