SanHQin 6 月之前
父节点
当前提交
74bd5cd3a4

+ 2 - 3
build/webpack.prod.conf.js

@@ -78,10 +78,9 @@ const webpackConfig = merge(baseWebpackConfig, {
 		// 多页面配置
 		// 多页面配置
 		new HtmlWebpackPlugin({
 		new HtmlWebpackPlugin({
 			entry: "../src/main.js",
 			entry: "../src/main.js",
-			filename: 'index.html',
+			filename: config.build.index,
 			template: 'index.html',
 			template: 'index.html',
 			inject: true,
 			inject: true,
-			chunks: ['index'],  // 对应入口文件
 			minify: {
 			minify: {
 				removeComments: true,
 				removeComments: true,
 				collapseWhitespace: true,
 				collapseWhitespace: true,
@@ -92,10 +91,10 @@ const webpackConfig = merge(baseWebpackConfig, {
 
 
 		new HtmlWebpackPlugin({
 		new HtmlWebpackPlugin({
 			entry: "../src/pages/ffmpeg/main.js",
 			entry: "../src/pages/ffmpeg/main.js",
+			// filename: config.build.ffmpeg,
 			filename: 'ffmpeg.html',
 			filename: 'ffmpeg.html',
 			template: 'index.html',
 			template: 'index.html',
 			inject: true,
 			inject: true,
-			chunks: ['ffmpeg'],  // 对应另一个入口文件
 			minify: {
 			minify: {
 				removeComments: true,
 				removeComments: true,
 				collapseWhitespace: true,
 				collapseWhitespace: true,

+ 1 - 0
config/index.js

@@ -39,6 +39,7 @@ module.exports = {
   build: {
   build: {
     // Template for index.html
     // Template for index.html
     index: path.resolve(__dirname, '../dist/index.html'),
     index: path.resolve(__dirname, '../dist/index.html'),
+		// ffmpeg: path.resolve(__dirname, '../dist/ffmpeg/index.html'),
 
 
     // Paths
     // Paths
     assetsRoot: path.resolve(__dirname, '../dist'),
     assetsRoot: path.resolve(__dirname, '../dist'),

+ 1 - 1
dist/ffmpeg.html

@@ -32,7 +32,7 @@
       width: 100%;
       width: 100%;
       background: #e6eaf0;
       background: #e6eaf0;
       font-family: '黑体';
       font-family: '黑体';
-    }</style></head><body><div id=app></div></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.d6f0a3999d5325a12144918f9da3b7f4.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.161e82026ac2ae03ab6f.js></script><script type=text/javascript src=./static/js/vendor.de15001ce66f032e9274.js></script><script type=text/javascript src=./static/js/app.d17ccfcbc721dfbb18d0.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {
     document.documentElement.addEventListener("touchstart", function (event) {

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       width: 100%;
       background: #e6eaf0;
       background: #e6eaf0;
       font-family: '黑体';
       font-family: '黑体';
-    }</style></head><body><div id=app></div></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.d6f0a3999d5325a12144918f9da3b7f4.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.161e82026ac2ae03ab6f.js></script><script type=text/javascript src=./static/js/vendor.de15001ce66f032e9274.js></script><script type=text/javascript src=./static/js/app.d17ccfcbc721dfbb18d0.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {
     document.documentElement.addEventListener("touchstart", function (event) {

文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.d17ccfcbc721dfbb18d0.js.map


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/manifest.161e82026ac2ae03ab6f.js.map


部分文件因为文件数量过多而无法显示