using webpack proxying for api endpoint, serving static assets via webpack

This commit is contained in:
Malar Kannan
2017-07-29 23:16:40 +05:30
parent a26d63881b
commit 6c92ac627c
4 changed files with 14 additions and 14 deletions

View File

@@ -157,11 +157,11 @@ function build(previousFileSizes) {
function copyPublicFolder() {
fs.emptyDirSync(paths.appBuild);
fs.ensureSymlink(paths.appPng,path.resolve(paths.appBuild,'png'));
fs.copySync(paths.appPublic, paths.appBuild, {
dereference: true,
filter: file => file !== paths.appHtml && file !== paths.appPng,
});
// fs.ensureSymlink(paths.appPng,path.resolve(paths.appBuild,'png'));
// fs.copySync(paths.appPublic, paths.appBuild, {
// dereference: true,
// filter: file => file !== paths.appHtml && file !== paths.appPng,
// });
}
// Tools like Cloud9 rely on this.