forked from fanruan/fineui
Browse Source
Merge in VISUAL/fineui from ~TREECAT/fineui:es6 to es6 * commit '721d5bbdd9481bd195de0bc69d3f616583999c96': KERNEL-14316 chore:打包调整es6
treecat-罗群
2 years ago
4 changed files with 46 additions and 7 deletions
@ -0,0 +1,34 @@ |
|||||||
|
const webpack = require("webpack"); |
||||||
|
const MiniCssExtractPlugin = require("mini-css-extract-plugin"); |
||||||
|
const TerserPlugin = require("terser-webpack-plugin"); |
||||||
|
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin"); |
||||||
|
const common = require("./webpack.common.js"); |
||||||
|
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin"); |
||||||
|
const childProcess = require("child_process"); |
||||||
|
const { merge } = require("webpack-merge"); |
||||||
|
const dirs = require("./dirs"); |
||||||
|
const attachments = require("./attachments"); |
||||||
|
const path = require("path"); |
||||||
|
|
||||||
|
function git(command) { |
||||||
|
return childProcess.execSync(`git ${command}`).toString().trim(); |
||||||
|
} |
||||||
|
|
||||||
|
module.exports = merge(common, { |
||||||
|
mode: "development", |
||||||
|
|
||||||
|
devtool: "inline-source-map", |
||||||
|
|
||||||
|
output: { |
||||||
|
path: dirs.DEST, |
||||||
|
filename: "[name].js", |
||||||
|
}, |
||||||
|
|
||||||
|
devServer: { |
||||||
|
port: 9001, |
||||||
|
liveReload: true, |
||||||
|
historyApiFallback: { |
||||||
|
rewrites: [{ from: /.*/, to: "/index.html" }], |
||||||
|
}, |
||||||
|
}, |
||||||
|
}); |
Loading…
Reference in new issue