Как мне быть? могу ли я его снести?
Compiled with warnings.
Warning
(835:3) autoprefixer: start value has mixed support, consider using flex-start instead
Warning
(24:5) autoprefixer: start value has mixed support, consider using flex-start instead
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
WARNING in ./src/assets/scss/user.scss (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].oneOf[7].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].oneOf[7].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[0].oneOf[7].use[3]!./node_modules/react-scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].oneOf[7].use[4]!./src/assets/scss/user.scss)
Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning
(835:3) autoprefixer: start value has mixed support, consider using flex-start instead
WARNING in ./src/components/Header/Header.scss (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].oneOf[7].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].oneOf[7].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[0].oneOf[7].use[3]!./node_modules/react-scripts/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].oneOf[7].use[4]!./src/components/Header/Header.scss)
Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning
(24:5) autoprefixer: start value has mixed support, consider using flex-start instead
webpack compiled with 2 warnings
а менять его неправильно. так как бы временный
Можно ли удалить файл theme.min.css из dev сборки?
user.min.css
user.rtl.min.css
theme.min.css
theme.rtl.min.css
theme.min.css.map
user.min.css.map
что дальше? руками что-то делать еще надо?
import { BuildEnv, BuildPaths } from './config/build/types/config';
import path from 'path';
import webpack from 'webpack';
import { buildWebpackConfig } from './config/build/buildWebpackConfig';
// eslint-disable-next-line import/no-anonymous-default-export
export default (env: BuildEnv) => {
const paths: BuildPaths = {
entry: path.resolve(__dirname, 'src', 'index.tsx'),
build: path.resolve(__dirname, 'build'),
html: path.resolve(__dirname, 'public', 'index.html'),
src: path.resolve(__dirname, 'src')
};
const mode = env.mode || 'development';
const apiUrl =
process.env.REACT_APP_SERVER_URL || process.env.REACT_APP_NEURAL_NETWORK;
const isDev = mode === 'development';
const analysis = env.analysis || false;
const config: webpack.Configuration = buildWebpackConfig({
mode,
paths,
isDev,
apiUrl,
project: 'frontend',
isAnalysis: analysis
});
return config;
};
именно подключается. а не компилируется
import useToggleStyle from './hooks/reduxHooks/useToggleStyle';
const link = document.createElement('link');
link.href = `${process.env.PUBLIC_URL}/css/theme${
isRTL ? '-rtl' : ''
}.min.css`;
link.type = 'text/css';
link.rel = 'stylesheet';
link.className = 'theme-stylesheet';
link.onload = () => {
setIsLoaded(true);
};