Skip to content

Commit

Permalink
fix: 缓存问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahui92 committed Aug 30, 2024
1 parent 600c254 commit eb97fd0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion web-rtc/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
const webpack = require('webpack');
const path = require('path');

const HtmlWebpackPlugin = require('html-webpack-plugin');

const isProduction = process.env.NODE_ENV === 'production';
const devtool = isProduction ? 'cheap-module-source-map' : 'source-map';
const devtool = isProduction ? 'source-map' : 'cheap-module-source-map';

module.exports = {
mode: isProduction ? 'production' : 'development',
Expand All @@ -13,6 +15,10 @@ module.exports = {
compress: true,
port: 9000
},
output: {
filename: 'bundle.[hash].js',
path: path.resolve(__dirname, 'dist'),
},
resolve: {
extensions: ['.ts', '.tsx', '.js']
},
Expand Down

0 comments on commit eb97fd0

Please sign in to comment.