mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
Add _headers
This commit is contained in:
parent
2b286229ac
commit
f5f0efb1a2
2 changed files with 5 additions and 2 deletions
2
_headers
Normal file
2
_headers
Normal file
|
@ -0,0 +1,2 @@
|
|||
/*
|
||||
Access-Control-Allow-Origin: *
|
|
@ -2,7 +2,7 @@ import ModuleRepos from './modules.js';
|
|||
|
||||
import Parcel from 'parcel-bundler';
|
||||
|
||||
import { rmSync, mkdirSync, readFileSync, writeFileSync } from 'fs';
|
||||
import { rmSync, mkdirSync, readFileSync, writeFileSync, copyFileSync } from 'fs';
|
||||
import { createHash } from 'crypto';
|
||||
|
||||
import { dirname } from 'path';
|
||||
|
@ -101,3 +101,4 @@ for (const repo of ModuleRepos) {
|
|||
}
|
||||
|
||||
writeFileSync(`${distDir}/modules.json`, JSON.stringify(moduleJson));
|
||||
copyFileSync(`${__dirname.replace('/src', '')}/_headers`, `${distDir}/_headers`);
|
Loading…
Reference in a new issue