配置插件

This commit is contained in:
jqtmviyu 2023-01-19 03:31:59 +08:00
parent bdff650220
commit 7d1b783783
4 changed files with 17 additions and 1 deletions

6
.env Normal file
View File

@ -0,0 +1,6 @@
HOST=0.0.0.0
PORT=1337
APP_KEYS=e6x7+oa1YCfr9/IorM117A==,kFbMg+KtC7y7MKCHRKCD+Q==,VjG6I5xNWZ6ZMWnligDMKw==,LHVktZnO1pR7422mae/CuQ==
API_TOKEN_SALT=HxNwjeCL/vJA8vvsvTsWwA==
ADMIN_JWT_SECRET=xTjiDidZeh3t0rjp21KTKg==
JWT_SECRET=+J58VTH+GVgYw5ezQGb6zQ==

2
.gitignore vendored
View File

@ -106,7 +106,7 @@ coverage
# Strapi
############################
.env
# .env
license.txt
exports
*.cache

7
config/plugins.js Normal file
View File

@ -0,0 +1,7 @@
module.exports = ({ env }) => ({
//...
'import-export-entries': {
enabled: true,
},
//...
});

View File

@ -1,9 +1,12 @@
'use strict';
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
/* eslint-disable no-unused-vars */
module.exports = (config, webpack) => {
// Note: we provide webpack above so you should not `require` it
// Perform customizations to webpack config
// Important: return the modified config
config.plugins.push(new MonacoWebpackPlugin());
return config;
};