script const path = require('path'); module.exports = { entry: './src/index.js', output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist'), }, module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: 'babel-loader', }, { test: /\.css$/, use: ['style-loader', 'css-loader'], }, { use: 'file-loader', }, ], }, }; script const gulp = require('gulp'); const uglify = require('gulp-uglify'); const concat = require('gulp-concat'); gulp.task('scripts', function() { return gulp.src('src/*.js') .pipe(concat('bundle.js')) .pipe(uglify()) .pipe(gulp.dest('dist/')); }); gulp.task('default', gulp.series('scripts')); javadoc -d docs -sourcepath src com.example


上一篇:
下一篇:
切换中文