Today, I am reading how to use vw to implement mobile adaptation in the Vue project . If you want to try to build a react+vw environment, I would like to ask you a few questions.
question: in the 1:postcss-loader configuration, can the order of plug-ins loaded in plugins be adjusted at will? I didn"t really deserve webpack, to ask for an answer.
`{
// Options for PostCSS as we reference these options twice
// Adds vendor prefixing based on your specified browser support in
// package.json
loader: require.resolve("postcss-loader"),
options: {
// Necessary for external CSS imports to work
// https://github.com/facebook/create-react-app/issues/2677
ident: "postcss",
plugins: () => [
require("postcss-flexbugs-fixes"),
require("postcss-preset-env")({
autoprefixer: {
flexbox: "no-2009",
},
stage: 3,
}),
],
},
},`
question 2: desert is equipped with cssnano,. See the introduction in his article that cssnano and css-loader are bundled together. Is it no longer necessary to configure cssnano in CRA?