|
@@ -1,13 +1,4 @@
|
|
|
const path = require('path');
|
|
const path = require('path');
|
|
|
-const getFirstHost = () => {
|
|
|
|
|
- let host = window.location.host;
|
|
|
|
|
- host = host.split('.');
|
|
|
|
|
- host = host.length == 3 ? host[1] : host[0];
|
|
|
|
|
- if (process.env.NODE_ENV == 'development') {
|
|
|
|
|
- return 'huaml';
|
|
|
|
|
- }
|
|
|
|
|
- return host;
|
|
|
|
|
-};
|
|
|
|
|
|
|
|
|
|
const isProduction = process.env.NODE_ENV === 'production';
|
|
const isProduction = process.env.NODE_ENV === 'production';
|
|
|
|
|
|
|
@@ -15,8 +6,6 @@ function resolve(dir) {
|
|
|
return path.join(__dirname, dir);
|
|
return path.join(__dirname, dir);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// const hostUrl = `${window.location.protocol}//static.${getFirstHost()}.com`;
|
|
|
|
|
-// const hostUrl = `https://static.huaml.com`;
|
|
|
|
|
const hostUrl = ``;
|
|
const hostUrl = ``;
|
|
|
|
|
|
|
|
const cdn = {
|
|
const cdn = {
|