Commit 2370a7e6 by 万亚飞

fix bug

parent b473ab94
...@@ -13,7 +13,7 @@ module.exports = { ...@@ -13,7 +13,7 @@ module.exports = {
}, },
output: { output: {
publicPath: '/', publicPath: '/',
filename: '[name].[hash:8].js', filename: 'js/[name].[hash:8].js',
path: resolve(__dirname, '../build') path: resolve(__dirname, '../build')
}, },
module: { module: {
...@@ -70,7 +70,7 @@ module.exports = { ...@@ -70,7 +70,7 @@ module.exports = {
loader: 'css-loader', loader: 'css-loader',
options: { options: {
modules: false, modules: false,
localIdentName: '[local]--[hash:base64:5]' localIdentName: 'css/[local]--[hash:base64:5]'
} }
}, },
{ {
......
...@@ -18,8 +18,8 @@ module.exports = { ...@@ -18,8 +18,8 @@ module.exports = {
vendor: ['react'] vendor: ['react']
}, },
output: { output: {
publicPath: '/', publicPath: '/new/',
filename: '[name].[contenthash:8].js', filename: 'js/[name].[contenthash:8].js',
path: resolve(__dirname, '../dist') path: resolve(__dirname, '../dist')
}, },
module: { module: {
...@@ -78,7 +78,7 @@ module.exports = { ...@@ -78,7 +78,7 @@ module.exports = {
loader: 'css-loader', loader: 'css-loader',
options: { options: {
modules: false, modules: false,
localIdentName: '[local]--[hash:base64:5]' localIdentName: 'css/[local]--[hash:base64:5]'
} }
}, },
{ loader: 'postcss-loader' }, { loader: 'postcss-loader' },
...@@ -170,7 +170,7 @@ module.exports = { ...@@ -170,7 +170,7 @@ module.exports = {
// include: [/\.js$/, /\.css$/, /\.html$/, /\.jpg/, /\.jpeg/, /\.svg/, /\.webp/, /\.png/] // include: [/\.js$/, /\.css$/, /\.html$/, /\.jpg/, /\.jpeg/, /\.svg/, /\.webp/, /\.png/]
// }), // }),
new MiniCssExtractPlugin({ new MiniCssExtractPlugin({
filename: '[name].[contenthash:8].css' filename: 'css/[name].[contenthash:8].css'
}), }),
new CleanWebpackPlugin(), new CleanWebpackPlugin(),
new OptimizeCssAssetsWebpackPlugin({ new OptimizeCssAssetsWebpackPlugin({
......
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><meta http-equiv="X-UA-Compatible" content="ie=edge"><meta name="keywords" content="健康,健康心理测试,健康在线心理测试,健康免费心理测试,健康心理测试题,健康心理测试小游戏,健康心理测试工具"/><meta name="description" content="壹点灵心理测试频道为您提供专业,贴心的免费健康心理测试题库,和免费的健康心理测试小游戏,动动手指,立刻免费在线健康心理测试。"/><title>壹点零</title><link href="/vendors~app.b1ea6b3e.css" rel="stylesheet"><link href="/app.fcd5fb51.css" rel="stylesheet"><link as="script" href="/app.6daef0c5.js" rel="preload"><link as="style" href="/app.fcd5fb51.css" rel="preload"><link as="script" href="/runtime~app.2fa568f7.js" rel="preload"><link as="script" href="/runtime~vendor.ddec352d.js" rel="preload"><link as="script" href="/vendor.291365be.js" rel="preload"><link as="style" href="/vendors~app.b1ea6b3e.css" rel="preload"><link as="script" href="/vendors~app.fc3abd48.js" rel="preload"></head><body><div id="root"></div><script type="text/javascript" src="/runtime~app.2fa568f7.js"></script><script type="text/javascript" src="/vendors~app.fc3abd48.js"></script><script type="text/javascript" src="/app.6daef0c5.js"></script><script type="text/javascript" src="/runtime~vendor.ddec352d.js"></script><script type="text/javascript" src="/vendor.291365be.js"></script></body><script>window.onload=function(){var n=document.createElement("style"),e=document.documentElement.clientWidth/16;n.innerHTML="html{font-size:"+e+"px !important}",document.body.appendChild(n)}</script></html> <!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><meta http-equiv="X-UA-Compatible" content="ie=edge"><meta name="keywords" content="健康,健康心理测试,健康在线心理测试,健康免费心理测试,健康心理测试题,健康心理测试小游戏,健康心理测试工具"/><meta name="description" content="壹点灵心理测试频道为您提供专业,贴心的免费健康心理测试题库,和免费的健康心理测试小游戏,动动手指,立刻免费在线健康心理测试。"/><title>壹点零</title><link href="/new/css/vendors~app.b1ea6b3e.css" rel="stylesheet"><link href="/new/css/app.4b7bf365.css" rel="stylesheet"><link as="style" href="/new/css/app.4b7bf365.css" rel="preload"><link as="style" href="/new/css/vendors~app.b1ea6b3e.css" rel="preload"><link as="script" href="/new/js/app.6daef0c5.js" rel="preload"><link as="script" href="/new/js/runtime~app.e7a12d04.js" rel="preload"><link as="script" href="/new/js/runtime~vendor.87dde859.js" rel="preload"><link as="script" href="/new/js/vendor.291365be.js" rel="preload"><link as="script" href="/new/js/vendors~app.fc3abd48.js" rel="preload"></head><body><div id="root"></div><script type="text/javascript" src="/new/js/runtime~app.e7a12d04.js"></script><script type="text/javascript" src="/new/js/vendors~app.fc3abd48.js"></script><script type="text/javascript" src="/new/js/app.6daef0c5.js"></script><script type="text/javascript" src="/new/js/runtime~vendor.87dde859.js"></script><script type="text/javascript" src="/new/js/vendor.291365be.js"></script></body><script>window.onload=function(){var n=document.createElement("style"),e=document.documentElement.clientWidth/16;n.innerHTML="html{font-size:"+e+"px !important}",document.body.appendChild(n)}</script></html>
\ No newline at end of file \ No newline at end of file
!function(e){function r(r){for(var n,f,i=r[0],l=r[1],a=r[2],c=0,s=[];c<i.length;c++)f=i[c],o[f]&&s.push(o[f][0]),o[f]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var l=t[i];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},o={1:0},u=[];function f(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,function(r){return e[r]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/";var i=window.webpackJsonp=window.webpackJsonp||[],l=i.push.bind(i);i.push=r,i=i.slice();for(var a=0;a<i.length;a++)r(i[a]);var p=l;t()}([]);
\ No newline at end of file
!function(e){function r(r){for(var n,f,i=r[0],l=r[1],a=r[2],c=0,s=[];c<i.length;c++)f=i[c],o[f]&&s.push(o[f][0]),o[f]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var l=t[i];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},o={2:0},u=[];function f(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,function(r){return e[r]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/";var i=window.webpackJsonp=window.webpackJsonp||[],l=i.push.bind(i);i.push=r,i=i.slice();for(var a=0;a<i.length;a++)r(i[a]);var p=l;t()}([]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"./node_modules/_object-assign@4.1.1@object-assign/index.js":function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,c,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var f in n=Object(arguments[l]))o.call(n,f)&&(i[f]=n[f]);if(r){c=r(n);for(var a=0;a<c.length;a++)u.call(n,c[a])&&(i[c[a]]=n[c[a]])}}return i}},"./node_modules/_react@16.8.6@react/cjs/react.production.min.js":function(e,t,n){"use strict";
/** @license React v16.8.6
* 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.
*/function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n("./node_modules/_object-assign@4.1.1@object-assign/index.js"),u="function"==typeof Symbol&&Symbol.for,c=u?Symbol.for("react.element"):60103,i=u?Symbol.for("react.portal"):60106,l=u?Symbol.for("react.fragment"):60107,f=u?Symbol.for("react.strict_mode"):60108,a=u?Symbol.for("react.profiler"):60114,s=u?Symbol.for("react.provider"):60109,p=u?Symbol.for("react.context"):60110,y=u?Symbol.for("react.concurrent_mode"):60111,d=u?Symbol.for("react.forward_ref"):60112,m=u?Symbol.for("react.suspense"):60113,b=u?Symbol.for("react.memo"):60115,v=u?Symbol.for("react.lazy"):60116,h="function"==typeof Symbol&&Symbol.iterator;function _(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,u,c,i){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,u,c,i],f=0;(e=Error(t.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function S(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||j}function w(){}function k(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||j}S.prototype.isReactComponent={},S.prototype.setState=function(e,t){"object"!==r(e)&&"function"!=typeof e&&null!=e&&_("85"),this.updater.enqueueSetState(this,e,t,"setState")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=S.prototype;var O=k.prototype=new w;O.constructor=k,o(O,S.prototype),O.isPureReactComponent=!0;var x={current:null},$={current:null},C=Object.prototype.hasOwnProperty,P={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r=void 0,o={},u=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(u=""+t.key),t)C.call(t,r)&&!P.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var f=Array(l),a=0;a<l;a++)f[a]=arguments[a+2];o.children=f}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:c,type:e,key:u,ref:i,props:o,_owner:$.current}}function R(e){return"object"===r(e)&&null!==e&&e.$$typeof===c}var A=/\/+/g,I=[];function q(e,t,n,r){if(I.length){var o=I.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function M(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>I.length&&I.push(e)}function U(e,t,n){return null==e?0:function e(t,n,o,u){var l=r(t);"undefined"!==l&&"boolean"!==l||(t=null);var f=!1;if(null===t)f=!0;else switch(l){case"string":case"number":f=!0;break;case"object":switch(t.$$typeof){case c:case i:f=!0}}if(f)return o(u,t,""===n?"."+F(t,0):n),1;if(f=0,n=""===n?".":n+":",Array.isArray(t))for(var a=0;a<t.length;a++){var s=n+F(l=t[a],a);f+=e(l,s,o,u)}else if(s=null===t||"object"!==r(t)?null:"function"==typeof(s=h&&t[h]||t["@@iterator"])?s:null,"function"==typeof s)for(t=s.call(t),a=0;!(l=t.next()).done;)f+=e(l=l.value,s=n+F(l,a++),o,u);else"object"===l&&_("31","[object Object]"==(o=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":o,"");return f}(e,"",t,n)}function F(e,t){return"object"===r(e)&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function L(e,t){e.func.call(e.context,t,e.count++)}function N(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?T(e,r,n,function(e){return e}):null!=e&&(R(e)&&(e=function(e,t){return{$$typeof:c,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(A,"$&/")+"/")+n)),r.push(e))}function T(e,t,n,r,o){var u="";null!=n&&(u=(""+n).replace(A,"$&/")+"/"),U(e,N,t=q(t,u,r,o)),M(t)}function V(){var e=x.current;return null===e&&_("321"),e}var D={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return T(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;U(e,L,t=q(null,null,t,n)),M(t)},count:function(e){return U(e,function(){return null},null)},toArray:function(e){var t=[];return T(e,t,null,function(e){return e}),t},only:function(e){return R(e)||_("143"),e}},createRef:function(){return{current:null}},Component:S,PureComponent:k,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:b,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return V().useCallback(e,t)},useContext:function(e,t){return V().useContext(e,t)},useEffect:function(e,t){return V().useEffect(e,t)},useImperativeHandle:function(e,t,n){return V().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return V().useLayoutEffect(e,t)},useMemo:function(e,t){return V().useMemo(e,t)},useReducer:function(e,t,n){return V().useReducer(e,t,n)},useRef:function(e){return V().useRef(e)},useState:function(e){return V().useState(e)},Fragment:l,StrictMode:f,Suspense:m,createElement:E,cloneElement:function(e,t,n){null==e&&_("267",e);var r=void 0,u=o({},e.props),i=e.key,l=e.ref,f=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,f=$.current),void 0!==t.key&&(i=""+t.key);var a=void 0;for(r in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)C.call(t,r)&&!P.hasOwnProperty(r)&&(u[r]=void 0===t[r]&&void 0!==a?a[r]:t[r])}if(1===(r=arguments.length-2))u.children=n;else if(1<r){a=Array(r);for(var s=0;s<r;s++)a[s]=arguments[s+2];u.children=a}return{$$typeof:c,type:e.type,key:i,ref:l,props:u,_owner:f}},createFactory:function(e){var t=E.bind(null,e);return t.type=e,t},isValidElement:R,version:"16.8.6",unstable_ConcurrentMode:y,unstable_Profiler:a,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:x,ReactCurrentOwner:$,assign:o}},z={default:D},B=z&&D||z;e.exports=B.default||B},"./node_modules/_react@16.8.6@react/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/_react@16.8.6@react/cjs/react.production.min.js")},1:function(e,t,n){e.exports=n("./node_modules/_react@16.8.6@react/index.js")}},[[1,2]]]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
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