enforce npm version

This commit is contained in:
Thomas Nordquist
2022-02-27 14:22:22 +01:00
parent 24e9c4cd22
commit d428428a6e
4 changed files with 14 additions and 13 deletions

View File

@@ -10,6 +10,9 @@
"test": "cross-env TS_NODE_PROJECT=test/tsconfig.json yarn mochatest",
"mochatest": "mocha --require ts-node/register src/**/*.spec.ts"
},
"engines": {
"npm": "16"
},
"author": "",
"license": "CC-BY-ND-4.0",
"dependencies": {
@@ -89,4 +92,4 @@
"peerDependencies": {
"electron": "^17"
}
}
}

View File

@@ -17,12 +17,11 @@ module.exports = {
splitChunks: {
chunks: 'all',
minSize: 30000,
maxSize: 0,
minChunks: 1,
maxAsyncRequests: 5,
maxInitialRequests: 3,
automaticNameDelimiter: '~',
name: true,
// name: true,
cacheGroups: {
vendors: {
test: /[\\/]node_modules[\\/](react|react-dom|@material-ui|popper\.js|react|react-redux|prop-types|jss|redux|scheduler|react-transition-group)[\\/]/,
@@ -48,7 +47,6 @@ module.exports = {
resolve: {
// Add '.ts' and '.tsx' as resolvable extensions.
extensions: ['.ts', '.mjs', '.m.js', '.tsx', '.js', '.json', '.node'],
// alias: { url: false }
},
module: {
rules: [
@@ -56,15 +54,9 @@ module.exports = {
{
test: /\.tsx?$/,
loader: 'ts-loader',
// options: {
// reportFiles: [
// "src/**/*.{ts,tsx}",
// "../backend/src/**/*.{ts,tsx}"
// ]
// }
},
// All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
// { enforce: 'pre', test: /\.js$/, loader: 'source-map-loader' },
{ enforce: 'pre', test: /\.js$/, loader: 'source-map-loader' },
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],