using webpack proxying for api endpoint, serving static assets via webpack
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user