Commit ee2e9938 authored by wangxuelai's avatar wangxuelai

'dss'

parent cc5c75d3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><%= htmlWebpackPlugin.options.title %></title>
<link rel="shortcut icon" href="https://cdn.img.shangjiadao.cn/qingxiao/biz/image/qxlogo4.png" >
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Polyfills -->
<!--[if lt IE 10]>
<script src="js/console-polyfill.js"></script>
<![endif]-->
<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"></script>
<%= htmlWebpackPlugin.options.files.header.css.map((item) => {
return `<link href="${htmlWebpackPlugin.options.files.CDN}${item}?${Date.now()}" rel="stylesheet">`
}).join('') %>
<%= htmlWebpackPlugin.options.files.header.basejs.map((item) => {
return `<script src="${item}?20191012222" charset="utf-8"></script>`
}).join('') %>
<%= htmlWebpackPlugin.options.files.header.js.map((item) => {
return `<script src="${htmlWebpackPlugin.options.files.CDN}${item}?20191012222" charset="utf-8"></script>`
}).join('') %>
</head>
</head>
<body>
<div id="root"></div>
<%= htmlWebpackPlugin.options.files.footer.js.map((item) => {
return `<script src="${htmlWebpackPlugin.options.files.CDN}${item}?${Date.now()}" charset="utf-8"></script>`
}).join('') %>
</body>
</html>
\ No newline at end of file
......@@ -18,14 +18,11 @@
return `<script src="${item}?20191012222" charset="utf-8"></script>`
}).join('') %>
<%= htmlWebpackPlugin.options.files.header.js.map((item) => {
return `<script src="${htmlWebpackPlugin.options.files.CDN}${item}?20191012222" charset="utf-8"></script>`
return `<script src="${htmlWebpackPlugin.options.files.CDN}${item}?20191012222222" charset="utf-8"></script>`
}).join('') %>
</head>
</head>
<body>
<div id="root"></div>
<%= htmlWebpackPlugin.options.files.footer.js.map((item) => {
return `<script src="${htmlWebpackPlugin.options.files.CDN}${item}?${Date.now()}" charset="utf-8"></script>`
}).join('') %>
</body>
</html>
\ No newline at end of file
......@@ -13,11 +13,10 @@
<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"></script>
<script src="/js/ueeditor/ueditor.config.js?20191012222" charset="utf-8"></script><script src="/js/ueeditor/ueditor.all.js?20191012222" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?20191012222" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?20191012222" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?20191012222" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-sham.min.js?20191012222" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/json3.min.js?20191012222" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/html5shiv.min.js?20191012222" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/polyfill.js?20191012222" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/lib/vendor.dll.js?20191012222" charset="utf-8"></script>
<script src="js/console-polyfill.js?20191012222" charset="utf-8"></script><script src="js/es6-shim.min.js?20191012222" charset="utf-8"></script><script src="js/es5-shim.js?20191012222" charset="utf-8"></script><script src="js/es5-sham.min.js?20191012222" charset="utf-8"></script><script src="js/json3.min.js?20191012222" charset="utf-8"></script><script src="js/html5shiv.min.js?20191012222" charset="utf-8"></script><script src="js/polyfill.js?20191012222" charset="utf-8"></script><script src="lib/vendor.dll.js?2019101222211" charset="utf-8"></script>
</head>
</head>
<body>
<div id="root"></div>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/main.js?1577706356191" charset="utf-8"></script>
</body>
<script type="text/javascript" src="./dist/main.3af597.js"></script></body>
</html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -10,7 +10,8 @@
"precommit": "npm run lint",
"lib": "webpack --config webpackconfig/webpack.dll.config.js --progress",
"test-build": "set OWNNER_ENV=test&& webpack --config webpackconfig/webpack.test.config.js --progress",
"build": "set OWNNER_ENV=pro&& webpack --config webpackconfig/webpack.pro.config.js --progress"
"build": "set OWNNER_ENV=pro&& webpack --config webpackconfig/webpack.pro.config.js --progress",
"analyse": "set OWNNER_ENV=pro && webpack --profile --json > stats.json --config webpackconfig/webpack.pro.config.js --progress"
},
"author": "",
"license": "ISC",
......@@ -84,6 +85,7 @@
"style-loader": "^1.0.0",
"url-loader": "^2.2.0",
"webpack": "^4.41.2",
"webpack-bundle-analyzer": "^3.6.0",
"webpack-cli": "^3.3.9",
"webpack-dev-server": "^3.8.2",
"webpack-merge": "^4.2.2"
......
import dva from 'dva';
import createLoading from 'dva-loading';
// import createLoading from 'dva-loading';
import './index.less';
import 'antd/dist/antd.less'; // eslint-disable-line
import models from './models/index';
......@@ -8,7 +8,7 @@ import models from './models/index';
const app = dva();
// 2. Pluginsss
// app.use({});
app.use(createLoading());
// app.use(createLoading());
// 3. Model
// require('./models/index').namespaces.forEach((ele) => {
// app.model(ele);
......
......@@ -3,7 +3,6 @@ import { routerRedux } from 'dva/router';
import { message } from 'antd';
import { delay } from 'redux-saga';
import moment from 'moment';
import co from 'co';
import {
LocalStorage,
SessionStorage,
......
......@@ -2,7 +2,6 @@
import { routerRedux } from 'dva/router';
import { message } from 'antd';
import { delay } from 'redux-saga';
import co from 'co';
import {
LocalStorage,
SessionStorage,
......
......@@ -3,7 +3,6 @@ import { routerRedux } from 'dva/router';
import { message } from 'antd';
import { delay } from 'redux-saga';
import moment from 'moment';
import co from 'co';
import {
LocalStorage,
SessionStorage,
......
......@@ -2,7 +2,6 @@
import { routerRedux } from 'dva/router';
import { message } from 'antd';
import { delay } from 'redux-saga';
import co from 'co';
import moment from 'moment';
import update from 'immutability-helper';
import {
......
......@@ -2,7 +2,6 @@
import { routerRedux } from 'dva/router';
import { message } from 'antd';
import { delay } from 'redux-saga';
import co from 'co';
import {
LocalStorage,
SessionStorage,
......
......@@ -2,7 +2,6 @@
import { routerRedux } from 'dva/router';
import { message } from 'antd';
import { delay } from 'redux-saga';
import co from 'co';
import moment from 'moment';
import {
LocalStorage,
......
......@@ -2,7 +2,6 @@
import { routerRedux } from 'dva/router';
import { message } from 'antd';
import { delay } from 'redux-saga';
import co from 'co';
import {
LocalStorage,
SessionStorage,
......
......@@ -2,7 +2,6 @@
import { routerRedux } from 'dva/router';
import { message } from 'antd';
import { delay } from 'redux-saga';
import co from 'co';
import {
LocalStorage,
SessionStorage,
......
......@@ -2,7 +2,6 @@
import { routerRedux } from 'dva/router';
import { message } from 'antd';
import { delay } from 'redux-saga';
import co from 'co';
import {
LocalStorage,
SessionStorage,
......
......@@ -2,7 +2,6 @@
import { routerRedux } from 'dva/router';
import { message } from 'antd';
import { delay } from 'redux-saga';
import co from 'co';
import {
LocalStorage,
SessionStorage,
......
......@@ -2,7 +2,6 @@
import { routerRedux } from 'dva/router';
import { message } from 'antd';
import { delay } from 'redux-saga';
import co from 'co';
import {
LocalStorage,
SessionStorage,
......
......@@ -24,7 +24,6 @@ import {
showMonthDay,
} from '../../utils/index';
const { TabPane } = Tabs;
const echarts = require('echarts');
class Headquarters extends React.Component {
constructor(props) {
super(props);
......
......@@ -32,7 +32,7 @@ const devFile ={
title: '轻校',
template: './index.ejs',
filename: htmlFilename,
inject: false,
inject: true,
// hash: true,
files: {
CDN: CDN,
......@@ -60,8 +60,8 @@ const devFile ={
};
module.exports = {
output: {
filename: "[name].js",
chunkFilename: '[name].js?[chunkhash:6]',
filename: "[name].[chunkhash:6].js",
chunkFilename: '[name].[chunkhash:6].js?',
},
module: {
rules: [
......@@ -76,7 +76,7 @@ module.exports = {
loader: 'css-loader', // translates CSS into CommonJS
options: {
modules: {
localIdentName: '[name]_[local]_[hash:base64:5]',
localIdentName: '[path][name]_[local]',
},
},
},
......@@ -160,11 +160,20 @@ module.exports = {
'__IMGCDN__' : JSON.stringify(__IMGCDN__),
}),
],
optimization: {
splitChunks: {
chunks: "all",
minSize: 10000000,
minChunks: 1,
}
}
// optimization: {
// splitChunks: {
// chunks: "all",
// minSize: 3000,
// minChunks: 1,
// maxAsyncRequests: 1,
// automaticNameMaxLength: 10
// }
// }
// optimization: {
// splitChunks: {
// chunks: "all",
// // minSize: 10000000,
// minChunks: 1,
// }
// }
}
\ No newline at end of file
......@@ -13,7 +13,13 @@ module.exports = {
'cropper',
'bizcharts',
'xlsx',
'clipboard'
'clipboard',
'lodash',
'axios',
'qs',
'react-router-dom/es',
'redux-saga',
'path-to-regexp',
],
},
output: {
......
......@@ -2,6 +2,7 @@ const webpackMerge = require('webpack-merge');
const baseconfig = require('./webpack.base.config.js');
const webpack = require('webpack');
const path = require('path');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
module.exports = webpackMerge(baseconfig, {
entry: path.resolve(__dirname, "../src/index.js"),
output: {
......@@ -10,6 +11,7 @@ module.exports = webpackMerge(baseconfig, {
},
mode: 'production',
plugins: [
new BundleAnalyzerPlugin(),
new webpack.DllReferencePlugin({
context: path.resolve(__dirname, '../'),
manifest: require('../lib/vendor-manifest.json'),
......
Arguments:
D:\application\nodejs\node.exe C:\Program Files (x86)\Yarn\bin\yarn.js add tr-tree -S
D:\application\nodejs\node.exe C:\Program Files (x86)\Yarn\bin\yarn.js add jquery
PATH:
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Ruby24\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Yarn\bin\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Common Files\NSEC\;C:\Python27;D:\application\Microsoft VS Code\bin;D:\application\nodejs\;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\application\Microsoft VS Code\bin;E:\application\Fiddler;C:\Users\Administrator\AppData\Local\Yarn\bin;E:\application\adb;E:\application\IntelliJ IDEA 2018.3.5\bin;;C:\Program Files\Java\jre1.8.0_191\bin;C:\Program Files\Java\jdk1.8.0_191\bin;C:\Users\Administrator\AppData\Roaming\npm
......@@ -14,17 +14,12 @@ Platform:
win32 x64
Trace:
Error: https://registry.yarnpkg.com/tr-tree: Not found
at Request.params.callback [as _callback] (C:\Program Files (x86)\Yarn\lib\cli.js:65327:18)
at Request.self.callback (C:\Program Files (x86)\Yarn\lib\cli.js:133155:22)
at Request.emit (events.js:198:13)
at Request.<anonymous> (C:\Program Files (x86)\Yarn\lib\cli.js:134138:10)
at Request.emit (events.js:198:13)
at IncomingMessage.<anonymous> (C:\Program Files (x86)\Yarn\lib\cli.js:134058:12)
at Object.onceWrapper (events.js:286:20)
at IncomingMessage.emit (events.js:203:15)
at endReadableNT (_stream_readable.js:1129:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
SyntaxError: D:\biz.qingxiao.com\package.json: Unexpected token } in JSON at position 721
at JSON.parse (<anonymous>)
at C:\Program Files (x86)\Yarn\lib\cli.js:1130:59
at Generator.next (<anonymous>)
at step (C:\Program Files (x86)\Yarn\lib\cli.js:98:30)
at C:\Program Files (x86)\Yarn\lib\cli.js:109:13
npm manifest:
{
......@@ -39,7 +34,8 @@ npm manifest:
"precommit": "npm run lint",
"lib": "webpack --config webpackconfig/webpack.dll.config.js --progress",
"test-build": "set OWNNER_ENV=test&& webpack --config webpackconfig/webpack.test.config.js --progress",
"build": "set OWNNER_ENV=pro&& webpack --config webpackconfig/webpack.pro.config.js --progress"
"build": "set OWNNER_ENV=pro&& webpack --config webpackconfig/webpack.pro.config.js --progress",
"analyse": "set OWNNER_ENV=pro && webpack --profile --json > stats.json --config webpackconfig/webpack.pro.config.js --progress",
},
"author": "",
"license": "ISC",
......@@ -77,6 +73,7 @@ npm manifest:
"qrcode.react": "^0.8.0",
"qs": "^6.5.1",
"query-string": "^6.8.3",
"rc-tree": "^3.0.0-alpha.38",
"react": "16.9.0",
"react-dnd": "^9.4.0",
"react-dnd-html5-backend": "^9.4.0",
......@@ -6502,6 +6499,18 @@ Lockfile:
rc-util "^4.8.0"
react-lifecycles-compat "^3.0.4"
rc-animate@^2.9.2:
version "2.10.2"
resolved "https://registry.yarnpkg.com/rc-animate/-/rc-animate-2.10.2.tgz#217fdc76ff26cbf425a5caf87cc8a36ba4598456"
dependencies:
babel-runtime "6.x"
classnames "^2.2.6"
css-animation "^1.3.2"
prop-types "15.x"
raf "^3.4.0"
rc-util "^4.15.3"
react-lifecycles-compat "^3.0.4"
rc-animate@^3.0.0-rc.1:
version "3.0.0-rc.6"
resolved "https://registry.yarnpkg.com/rc-animate/-/rc-animate-3.0.0-rc.6.tgz#04288eefa118e0cae214536c8a903ffaac1bc3fb"
......@@ -6821,6 +6830,17 @@ Lockfile:
shallowequal "^1.0.2"
warning "^4.0.1"
rc-tree@^3.0.0-alpha.38:
version "3.0.0-alpha.38"
resolved "https://registry.yarnpkg.com/rc-tree/-/rc-tree-3.0.0-alpha.38.tgz#338b0d6eb2ed2502325ef64387584b99daa4e4a7"
dependencies:
classnames "2.x"
prop-types "^15.5.8"
rc-animate "^2.9.2"
rc-util "^4.11.0"
rc-virtual-list "^0.0.0-alpha.28"
react-lifecycles-compat "^3.0.4"
rc-tree@~2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/rc-tree/-/rc-tree-2.0.0.tgz#68fc4c9ab696943b279a143619e2ecf05918fb53"
......@@ -6888,6 +6908,23 @@ Lockfile:
react-lifecycles-compat "^3.0.4"
shallowequal "^0.2.2"
rc-util@^4.11.0, rc-util@^4.15.3:
version "4.18.0"
resolved "https://registry.yarnpkg.com/rc-util/-/rc-util-4.18.0.tgz#b014712709ea2f777e5c207dca23ecd211cf73dd"
dependencies:
add-dom-event-listener "^1.1.0"
babel-runtime "6.x"
prop-types "^15.5.10"
react-lifecycles-compat "^3.0.4"
shallowequal "^1.1.0"
rc-virtual-list@^0.0.0-alpha.28:
version "0.0.0-alpha.28"
resolved "https://registry.yarnpkg.com/rc-virtual-list/-/rc-virtual-list-0.0.0-alpha.28.tgz#35ec58bdee8410948813b6a9f848001122daaad6"
dependencies:
classnames "^2.2.6"
rc-util "^4.8.0"
rc@^1.2.7:
version "1.2.8"
resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed"
......
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