Update build and SSR dependencies
This commit is contained in:
parent
2c6f43f3a7
commit
effc9fdd9e
15821
app/package-lock.json
generated
15821
app/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -19,7 +19,6 @@
|
|||||||
"@mapbox/sphericalmercator": "^1.1.0",
|
"@mapbox/sphericalmercator": "^1.1.0",
|
||||||
"ajv": "^7.1.1",
|
"ajv": "^7.1.1",
|
||||||
"ajv-formats": "^1.5.1",
|
"ajv-formats": "^1.5.1",
|
||||||
"babel-runtime": "^6.26.0",
|
|
||||||
"body-parser": "^1.19.0",
|
"body-parser": "^1.19.0",
|
||||||
"bootstrap": "^4.5.0",
|
"bootstrap": "^4.5.0",
|
||||||
"canvas-confetti": "^1.2.0",
|
"canvas-confetti": "^1.2.0",
|
||||||
@ -56,18 +55,22 @@
|
|||||||
"@types/react-leaflet": "^2.5.2",
|
"@types/react-leaflet": "^2.5.2",
|
||||||
"@types/react-router-dom": "^4.3.5",
|
"@types/react-router-dom": "^4.3.5",
|
||||||
"@types/sharp": "^0.22.3",
|
"@types/sharp": "^0.22.3",
|
||||||
"@types/webpack-env": "^1.15.2",
|
"@typescript-eslint/eslint-plugin": "^4.22.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
"@typescript-eslint/parser": "^4.22.0",
|
||||||
"@typescript-eslint/parser": "^2.34.0",
|
"copy-webpack-plugin": "^8.1.1",
|
||||||
"babel-eslint": "^10.1.0",
|
"eslint": "^7.24.0",
|
||||||
"copy-webpack-plugin": "^6.2.1",
|
"eslint-plugin-jest": "^24.3.5",
|
||||||
"eslint": "^5.16.0",
|
"eslint-plugin-react": "^7.23.2",
|
||||||
"eslint-plugin-jest": "^22.21.0",
|
"html-webpack-plugin": "^5.2.0",
|
||||||
"eslint-plugin-react": "^7.20.5",
|
"mini-css-extract-plugin": "^0.9.0",
|
||||||
"razzle": "^3.1.6",
|
"postcss": "^8.2.4",
|
||||||
"razzle-plugin-typescript": "^3.1.6",
|
"razzle": "^4.0.4",
|
||||||
"ts-jest": "^24.3.0",
|
"razzle-dev-utils": "^4.0.4",
|
||||||
"typescript": "^3.9.7"
|
"razzle-plugin-typescript": "^4.0.4",
|
||||||
|
"ts-jest": "^26.5.5",
|
||||||
|
"typescript": "^3.9.7",
|
||||||
|
"webpack": "^5.24.0",
|
||||||
|
"webpack-dev-server": "^3.11.0"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"transform": {
|
"transform": {
|
||||||
|
@ -1,37 +1,31 @@
|
|||||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
const CopyPlugin = require('copy-webpack-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: [
|
plugins: [
|
||||||
{
|
{
|
||||||
name: "typescript",
|
name: 'typescript',
|
||||||
options: {
|
options: {
|
||||||
useBabel: true,
|
|
||||||
useEslint: true,
|
|
||||||
forkTsChecker: {
|
forkTsChecker: {
|
||||||
tsconfig: "./tsconfig.json",
|
eslint: undefined // { files: './src/**/*.{ts,tsx,js,jsx}' }
|
||||||
tslint: undefined,
|
|
||||||
watch: "./src",
|
|
||||||
typeCheck: true,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
modify: (config, { target, dev }, webpack) => {
|
modifyWebpackConfig({ env: { target, dev }, webpackConfig }) {
|
||||||
// load webfonts
|
// load webfonts
|
||||||
const rules = config.module.rules || [];
|
webpackConfig.module.rules = webpackConfig.module.rules || [];
|
||||||
rules.push({
|
webpackConfig.module.rules.push({
|
||||||
test: /\.(eot|svg|ttf|woff|woff2)$/,
|
test: /\.(eot|svg|ttf|woff|woff2)$/,
|
||||||
loader: 'file-loader?name=public/fonts/[name].[ext]'
|
type: 'asset/resource'
|
||||||
})
|
});
|
||||||
config.module.rules = rules;
|
|
||||||
|
|
||||||
// add the map_styles directory to the build output
|
// add the map_styles directory to the build output
|
||||||
const plugins = config.plugins || [];
|
const plugins = webpackConfig.plugins || [];
|
||||||
plugins.push(new CopyWebpackPlugin({
|
plugins.push(new CopyPlugin({
|
||||||
patterns: [ {from: 'map_styles', to: "map_styles"}]
|
patterns: [ {from: 'map_styles', to: 'map_styles'}]
|
||||||
}));
|
}));
|
||||||
config.plugins = plugins;
|
webpackConfig.plugins = plugins;
|
||||||
|
|
||||||
return config;
|
return webpackConfig;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user