Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
fix: 🐛 移除 sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
virgoone committed Jan 7, 2022
1 parent 09cea85 commit 55f4903
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/webpack/webpack.config.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const { SourceMapDevToolPlugin } = require('webpack')
const { merge } = require('webpack-merge')
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin')
const safePostCssParser = require('postcss-safe-parser')
const StyleExtHtmlWebpackPlugin = require('../webpack-plugins/style-ext-html-webpack-plugin')
const { appSrc, appBuild } = require('../variables/paths')
const { PUBLIC_PATH } = require('../variables/variables')
const configFactory = require('./webpack.config')
const { processWebpackConfig } = require('../utils/custom-config')

Expand All @@ -20,10 +18,6 @@ module.exports = () =>
merge(
configFactory({
plugins: [
new SourceMapDevToolPlugin({
filename: '[file].map',
publicPath: PUBLIC_PATH
}),
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
// both options are optional
Expand Down

0 comments on commit 55f4903

Please sign in to comment.