Skip to content

Commit

Permalink
Merge pull request #5818 from haiwen/update-seafile-editor
Browse files Browse the repository at this point in the history
Update seafile editor
  • Loading branch information
shuntian authored Dec 11, 2023
2 parents 0eb819f + 8c03e23 commit d308380
Show file tree
Hide file tree
Showing 49 changed files with 29,314 additions and 22,282 deletions.
57 changes: 29 additions & 28 deletions frontend/config/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line strict
'use strict';

const fs = require('fs');
Expand All @@ -20,7 +21,7 @@ const getClientEnvironment = require('./env');
const paths = require('./paths');
const modules = require('./modules');
const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
const webpackBundleTracker = require('webpack-bundle-tracker');

const ForkTsCheckerWebpackPlugin =
Expand Down Expand Up @@ -135,34 +136,34 @@ module.exports = function (webpackEnv) {
config: false,
plugins: !useTailwind
? [
'postcss-flexbugs-fixes',
[
'postcss-preset-env',
{
autoprefixer: {
flexbox: 'no-2009',
},
stage: 3,
'postcss-flexbugs-fixes',
[
'postcss-preset-env',
{
autoprefixer: {
flexbox: 'no-2009',
},
],
// Adds PostCSS Normalize as the reset css with default options,
// so that it honors browserslist config in package.json
// which in turn let's users customize the target behavior as per their needs.
'postcss-normalize',
]
stage: 3,
},
],
// Adds PostCSS Normalize as the reset css with default options,
// so that it honors browserslist config in package.json
// which in turn let's users customize the target behavior as per their needs.
'postcss-normalize',
]
: [
'tailwindcss',
'postcss-flexbugs-fixes',
[
'postcss-preset-env',
{
autoprefixer: {
flexbox: 'no-2009',
},
stage: 3,
'tailwindcss',
'postcss-flexbugs-fixes',
[
'postcss-preset-env',
{
autoprefixer: {
flexbox: 'no-2009',
},
],
stage: 3,
},
],
],
},
sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment,
},
Expand Down Expand Up @@ -444,7 +445,7 @@ module.exports = function (webpackEnv) {
},
],
],

plugins: [
// isEnvDevelopment &&
// shouldUseReactRefresh &&
Expand Down Expand Up @@ -478,7 +479,7 @@ module.exports = function (webpackEnv) {
cacheDirectory: true,
// See #6846 for context on why cacheCompression is disabled
cacheCompression: false,

// Babel sourcemaps are needed for debugging into node_modules
// code. Without the options below, debuggers like VSCode
// show incorrect code and set breakpoints on the wrong lines.
Expand Down Expand Up @@ -608,7 +609,7 @@ module.exports = function (webpackEnv) {
},
plugins: [
new webpack.ProvidePlugin({
process: "process/browser.js",
process: 'process/browser.js',
}),
new NodePolyfillPlugin({
excludeAliases: ['console'],
Expand Down
Loading

0 comments on commit d308380

Please sign in to comment.