This is an automated email from the ASF dual-hosted git repository.

chenxingchun pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler-website.git


The following commit(s) were added to refs/heads/master by this push:
     new ac1b887  fix dist/index.html copy problem
     new a633b8d  Merge pull request #275 from chengshiwen/master
ac1b887 is described below

commit ac1b887e50d0992ee07cc41e2110c52b8cf67a70
Author: chengshiwen <[email protected]>
AuthorDate: Wed Jan 20 11:29:01 2021 +0800

    fix dist/index.html copy problem
---
 gulpfile.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gulpfile.js b/gulpfile.js
index 5ccace4..b4a2667 100755
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -10,6 +10,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
 const siteConfig = require('./site_config/site').default;
 const webpackConfig = require('./webpack.config.js');
 
+const distdir = path.join(__dirname, 'dist');
 const port = siteConfig.port || 8080;
 
 gulp.task('webpack-dev-server', () => {
@@ -55,13 +56,13 @@ gulp.task('webpack:build', callback => {
       return entries.map(entry => {
         return {
           from: path.join(__dirname, entry),
-          to: path.join(__dirname, 'dist', entry),
+          to: path.join(distdir, entry),
           ignore: ['*.md', '*.markdown']
         }
       });
     })()),
     new CopyWebpackPlugin([
-      { from: path.join(__dirname, siteConfig.defaultLanguage, 'index.html'), 
to: path.join(__dirname, 'dist/index.html') },
+      { from: path.join(distdir, siteConfig.defaultLanguage, 'index.html'), 
to: path.join(distdir, 'index.html') },
     ])
   );
 

Reply via email to