Commit 9889e993 authored by wangxuelai's avatar wangxuelai

''

parent 3a7fb9a9
......@@ -15,10 +15,10 @@
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>`
return `<script src="${item}?20200102" charset="utf-8"></script>`
}).join('') %>
<%= htmlWebpackPlugin.options.files.header.js.map((item) => {
return `<script src="${htmlWebpackPlugin.options.files.CDN}${item}?20191012222222" charset="utf-8"></script>`
return `<script src="${htmlWebpackPlugin.options.files.CDN}${item}?20200102" charset="utf-8"></script>`
}).join('') %>
</head>
</head>
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>轻校</title>
<link rel="shortcut icon" href="https://cdn.img.shangjiadao.cn/qingxiao/biz/image/qxlogo4.png" >
<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 -->
<!-- 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>
<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="js/console-polyfill.js?20191012222222" charset="utf-8"></script><script src="js/es6-shim.min.js?20191012222222" charset="utf-8"></script><script src="js/es5-shim.js?20191012222222" charset="utf-8"></script><script src="js/es5-sham.min.js?20191012222222" charset="utf-8"></script><script src="js/json3.min.js?20191012222222" charset="utf-8"></script><script src="js/html5shiv.min.js?20191012222222" charset="utf-8"></script><script src="js/polyfill.js?20191012222222" charset="utf-8"></script><script src="lib/vendor.dll.js?20191012222222" charset="utf-8"></script>
<script src="/js/ueeditor/ueditor.config.js?20200102" charset="utf-8"></script>
<script src="/js/ueeditor/ueditor.all.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-sham.min.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/json3.min.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/html5shiv.min.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/polyfill.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/lib/vendor.dll.js?20200102" charset="utf-8"></script>
</head>
</head>
<body>
<div id="root"></div>
<script type="text/javascript" src="./dist/main.dacea1.js"></script></body>
<script type="text/javascript" src="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/main.b8f35f.js"></script>
</body>
</html>
\ No newline at end of file
......@@ -69,6 +69,7 @@
"babel-preset-env": "^1.7.0",
"babel-preset-es2015": "7.0.0-beta.3",
"babel-preset-react": "7.0.0-beta.3",
"clean-webpack-plugin": "^3.0.0",
"css-loader": "^3.2.0",
"eslint": "^6.5.1",
"eslint-config-airbnb": "16.1.0",
......
......@@ -2,7 +2,8 @@ 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;
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
module.exports = webpackMerge(baseconfig, {
entry: path.resolve(__dirname, "../src/index.js"),
output: {
......@@ -11,7 +12,8 @@ module.exports = webpackMerge(baseconfig, {
},
mode: 'production',
plugins: [
new BundleAnalyzerPlugin(),
// new BundleAnalyzerPlugin(),
new CleanWebpackPlugin(),
// new webpack.DllReferencePlugin({
// context: path.resolve(__dirname, '../'),
// manifest: require('../lib/vendor-manifest.json'),
......
const webpackMerge = require('webpack-merge');
const baseconfig = require('./webpack.base.config.js');
const webpack = require('webpack');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const path = require('path');
module.exports = webpackMerge(baseconfig, {
entry: path.resolve(__dirname, "../src/index.js"),
......@@ -10,6 +11,9 @@ module.exports = webpackMerge(baseconfig, {
},
mode: 'production',
plugins: [
// new CleanWebpackPlugin({
// cleanOnceBeforeBuildPatterns: ['./dist']
// }),
// new webpack.DllReferencePlugin({
// context: path.resolve(__dirname, '../'),
// manifest: require('../lib/vendor-manifest.json'),
......
This diff is collapsed.
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