1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00

add switch for react query devtools based on .env (#6280)

This commit is contained in:
Richard Wei 2021-12-15 22:43:49 +13:00 committed by GitHub
parent f99329eb7e
commit ac9ca7d5e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 128 additions and 13 deletions

View file

@ -8,6 +8,7 @@ const CleanWebpackPlugin = require('clean-webpack-plugin');
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
const ESLintPlugin = require('eslint-webpack-plugin');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
const Dotenv = require('dotenv-webpack');
const pkg = require('../package.json');
const projectRoot = path.resolve(__dirname, '..');
@ -91,6 +92,7 @@ module.exports = {
writeToDisk: true,
},
plugins: [
new Dotenv(),
new ESLintPlugin(),
new HtmlWebpackPlugin({
template: './app/index.html',