Commit e5b83885 authored by 翁佳瑞's avatar 翁佳瑞

修改打包上传配置

parent a3b3f4fe
...@@ -52,7 +52,7 @@ const resolveModule = (resolveFn, filePath) => { ...@@ -52,7 +52,7 @@ const resolveModule = (resolveFn, filePath) => {
module.exports = { module.exports = {
dotenv: resolveApp('.env'), dotenv: resolveApp('.env'),
appPath: resolveApp('.'), appPath: resolveApp('.'),
appBuild: resolveApp('dist'), appBuild: resolveApp('build'),
appPublic: resolveApp('public'), appPublic: resolveApp('public'),
appHtml: resolveApp('public/index.html'), appHtml: resolveApp('public/index.html'),
appIndexJs: resolveModule(resolveApp, 'src/index'), appIndexJs: resolveModule(resolveApp, 'src/index'),
......
...@@ -530,6 +530,7 @@ module.exports = function(webpackEnv) { ...@@ -530,6 +530,7 @@ module.exports = function(webpackEnv) {
minifyCSS: true, minifyCSS: true,
minifyURLs: true, minifyURLs: true,
}, },
filename: '../dist/index.html'
} }
: undefined : undefined
) )
......
{
"files": {
"main.css": "//r.51gjj.com/webpublic/inclass/static/css/main.8e0c0d86.chunk.css",
"main.js": "//r.51gjj.com/webpublic/inclass/static/js/main.4bc3de5f.chunk.js",
"runtime-main.js": "//r.51gjj.com/webpublic/inclass/static/js/runtime-main.7c771ce0.js",
"static/css/2.6466ce29.chunk.css": "//r.51gjj.com/webpublic/inclass/static/css/2.6466ce29.chunk.css",
"static/js/2.4b9a045a.chunk.js": "//r.51gjj.com/webpublic/inclass/static/js/2.4b9a045a.chunk.js",
"index.html": "//r.51gjj.com/webpublic/inclass/index.html",
"precache-manifest.e046edc16495bcd903c5017244e914ea.js": "//r.51gjj.com/webpublic/inclass/precache-manifest.e046edc16495bcd903c5017244e914ea.js",
"service-worker.js": "//r.51gjj.com/webpublic/inclass/service-worker.js",
"static/js/2.4b9a045a.chunk.js.LICENSE.txt": "//r.51gjj.com/webpublic/inclass/static/js/2.4b9a045a.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.7c771ce0.js",
"static/css/2.6466ce29.chunk.css",
"static/js/2.4b9a045a.chunk.js",
"static/css/main.8e0c0d86.chunk.css",
"static/js/main.4bc3de5f.chunk.js"
]
}
\ No newline at end of file
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "f3c02d6092d4b57ae4c6afbdc3473103",
"url": "//r.51gjj.com/webpublic/inclass/index.html"
},
{
"revision": "f656d03998ed12d0a754",
"url": "//r.51gjj.com/webpublic/inclass/static/css/2.6466ce29.chunk.css"
},
{
"revision": "4a622099683550a808be",
"url": "//r.51gjj.com/webpublic/inclass/static/css/main.8e0c0d86.chunk.css"
},
{
"revision": "f656d03998ed12d0a754",
"url": "//r.51gjj.com/webpublic/inclass/static/js/2.4b9a045a.chunk.js"
},
{
"revision": "3453b8997016469371284a28c0e873e2",
"url": "//r.51gjj.com/webpublic/inclass/static/js/2.4b9a045a.chunk.js.LICENSE.txt"
},
{
"revision": "4a622099683550a808be",
"url": "//r.51gjj.com/webpublic/inclass/static/js/main.4bc3de5f.chunk.js"
},
{
"revision": "4653adeefb17c713de09",
"url": "//r.51gjj.com/webpublic/inclass/static/js/runtime-main.7c771ce0.js"
}
]);
\ No newline at end of file
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Workbox build configuration
* and re-run your build process.
* See https://goo.gl/2aRDsh
*/
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
"//r.51gjj.com/webpublic/inclass/precache-manifest.e046edc16495bcd903c5017244e914ea.js"
);
self.addEventListener('message', (event) => {
if (event.data && event.data.type === 'SKIP_WAITING') {
self.skipWaiting();
}
});
workbox.core.clientsClaim();
/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
* requests for URLs in the manifest.
* See https://goo.gl/S9QRab
*/
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("//r.51gjj.com/webpublic/inclass/index.html"), {
blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
});
This source diff could not be displayed because it is too large. You can view the blob instead.
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,"Courier New",monospace}.sider-menu .menu-header{color:#fff;height:64px;position:relative;line-height:64px;transition:all .3s;background:#002140}.sider-menu .menu-header .home{display:flex;align-items:center;justify-content:center}.sider-menu .menu-header .logo{height:32px;width:32px;display:inline-block;margin-right:10px}.sider-menu .menu-header .title{color:#fff;font-size:16px;font-weight:700}.site-layout .site-layout-background{padding:0;background:#fff;display:flex;align-items:center;justify-content:space-between}.site-layout .site-layout-background .trigger{font-size:18px;line-height:64px;padding:0 24px;cursor:pointer;transition:color .3s}.site-layout .site-layout-background .trigger:hover{color:#1890ff}.loginPane{position:relative;width:70vw;min-width:960px;display:block;margin:0 auto;padding-top:20vh}.login-inline{display:inline-block;vertical-align:middle}.loginItem{margin:15px 0}.btn{width:100%;border-radius:5px;outline:none;border:none;height:40px;font-size:16px}.btn_act{background-color:#008b8b;color:#fff}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/** @license React v0.19.1
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.13.1
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.13.1
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
This diff is collapsed.
!function(e){function t(t){for(var n,l,a=t[0],i=t[1],c=t[2],p=0,s=[];p<a.length;p++)l=a[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(f&&f(t);s.length;)s.shift()();return u.push.apply(u,c||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var i=r[a];0!==o[i]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="//r.51gjj.com/webpublic/inclass/";var a=this["webpackJsonpantd-demo-ts"]=this["webpackJsonpantd-demo-ts"]||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c<a.length;c++)t(a[c]);var f=i;r()}([]);
\ No newline at end of file
...@@ -14,7 +14,7 @@ needle.post( ...@@ -14,7 +14,7 @@ needle.post(
// 获取配置、设置上传本地路径、上传核心代码 // 获取配置、设置上传本地路径、上传核心代码
let config = res.data.config; let config = res.data.config;
const osspath = 'webpublic/inclass'; const osspath = 'webpublic/inclass';
const local = path.resolve(__dirname, './dist'); const local = path.resolve(__dirname, './build');
uploadToOss({ uploadToOss({
config, config,
local, local,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment