Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
顺风CSS不';在应用后不应用flex/block。隐藏到元素_Css_Reactjs_Npm_Tailwind Css_Postcss - Fatal编程技术网

顺风CSS不';在应用后不应用flex/block。隐藏到元素

顺风CSS不';在应用后不应用flex/block。隐藏到元素,css,reactjs,npm,tailwind-css,postcss,Css,Reactjs,Npm,Tailwind Css,Postcss,我希望我的div隐藏在小屏幕上,并在从md开始的大屏幕上可见: 但看起来,隐藏有更高的优先级。或者只是搞乱了我的一些依赖关系 <div className="hidden md:flex"> } 这是我的postsss.config.js文件: { "name": "manage-landing-page", "version": "0.1.0", "private&quo

我希望我的div隐藏在小屏幕上,并在从md开始的大屏幕上可见: 但看起来,隐藏有更高的优先级。或者只是搞乱了我的一些依赖关系

<div className="hidden md:flex">
}

这是我的postsss.config.js文件:

{
"name": "manage-landing-page",
"version": "0.1.0",
"private": true,
"scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "eslint": "eslint"
},
"dependencies": {
    "@next/bundle-analyzer": "^9.5.3",
    "@popmotion/popcorn": "^0.4.4",
    "@zeit/next-css": "^1.0.1",
    "@zeit/next-sass": "^1.0.1",
    "atomize": "^1.0.26",
    "babel-loader": "^8.0.6",
    "eslint-loader": "^4.0.2",
    "framer-motion": "^2.6.15",
    "next": "^9.5.4",
    "next-compose-plugins": "^2.2.0",
    "next-images": "^1.5.0",
    "next-videos": "^1.4.0",
    "node": "^14.13.0",
    "node-sass": "^4.14.1",
    "prop-types": "^15.7.2",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "react-hamburger-menu": "^1.2.1",
    "recompose": "^0.30.0",
    "sass": "^1.26.11",
    "shopify-buy": "^2.11.0",
    "swiper": "^6.3.2"
},
"devDependencies": {
    "@babel/plugin-transform-react-jsx": "^7.10.4",
    "babel-eslint": "^10.0.3",
    "eslint": "^7.9.0",
    "eslint-config-airbnb": "^18.2.0",
    "eslint-config-babel": "^9.0.0",
    "eslint-config-prettier": "^6.10.0",
    "eslint-plugin-import": "^2.22.0",
    "eslint-plugin-jsx-a11y": "^6.3.1",
    "eslint-plugin-node": "^11.1.0",
    "eslint-plugin-prettier": "^3.1.2",
    "eslint-plugin-react": "^7.20.6",
    "eslint-plugin-react-hooks": "^4.1.2",
    "eslint-plugin-standard": "^4.0.1",
    "postcss-flexbugs-fixes": "4.2.1",
    "postcss-preset-env": "^6.7.0",
    "prettier": "^1.19.1",
    "tailwindcss": "^1.8.10"
}
module.exports = {
    plugins: [
        require('postcss-import'),
        require('tailwindcss'),
        require('postcss-preset-env')({ stage: 1 }),
        require('postcss-flexbugs-fixes'),
    ],
};
const withPlugins = require('next-compose-plugins');

const withSass = require('@zeit/next-sass');

const withImages = require('next-images');

const withCSS = require('@zeit/next-css');

const withBundleAnalyzer = require('@next/bundle-analyzer')({
    enabled: process.env.ANALYZE === 'true',
});

const withVideos = require('next-videos');

// next.config.js
module.exports = withPlugins([withImages, withSass, withCSS, withVideos], {
    plugins: ['postcss-import', 'tailwindcss', 'autoprefixer'],
    serverRuntimeConfig: {
        // Will only be available on the server side
        mySecret: 'secret',
        secondSecret: process.env.SECOND_SECRET, // Pass through env variables
    },
    publicRuntimeConfig: {
        // Will be available on both server and client
        staticFolder: '/public',
    },
    module: {
        loaders: [
            {
                test: /.jsx?$/,
                loader: 'babel-loader',
                exclude: /node_modules/,
            },
            {
                test: /\.css$/,
                loader: 'style-loader!css-loader',
            },
            {
                test: /\.(jpe?g|png|gif|woff|woff2|eot|ttf|svg)(\?[a-z0-9=.]+)?$/,
                loader: 'url-loader?limit=100000',
            },
            {
                test: /\.(eot|woff|woff2|otf|ttf|svg|png|jpg|gif|webm)$/,
                use: {
                    loader: 'url-loader',
                    options: {
                        limit: 100000,
                        name: '[name].[ext]',
                    },
                },
            },
            {
                test: /\.style.js$/,
                use: [
                    'style-loader',
                    {
                        loader: 'css-loader',
                        options: { importLoaders: 1 },
                    },
                    {
                        loader: 'postcss-loader',
                        options: { parser: 'sugarss', exec: true },
                    },
                ],
            },
        ],
    },
    webpack(config) {
        config.module.rules.push(
            {
                test: /\.(eot|woff|woff2|otf|ttf|svg|png|jpg|gif)$/,
                use: {
                    loader: 'url-loader',
                    options: {
                        limit: 100000,
                        name: '[name].[ext]',
                    },
                },
            },
            {
                test: /\.style.js$/,
                use: [
                    'style-loader',
                    {
                        loader: 'css-loader',
                        options: { importLoaders: 1 },
                    },
                    {
                        loader: 'postcss-loader',
                        options: { parser: 'sugarss', exec: true },
                    },
                ],
            },
            {
                test: /\.(js|jsx)$/,
                exclude: /node_modules/,
                use: ['babel-loader', 'eslint-loader'],
            },
        );
        withBundleAnalyzer({});
        return config;
    },
});
这是我的下一个.config.js文件:

{
"name": "manage-landing-page",
"version": "0.1.0",
"private": true,
"scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "eslint": "eslint"
},
"dependencies": {
    "@next/bundle-analyzer": "^9.5.3",
    "@popmotion/popcorn": "^0.4.4",
    "@zeit/next-css": "^1.0.1",
    "@zeit/next-sass": "^1.0.1",
    "atomize": "^1.0.26",
    "babel-loader": "^8.0.6",
    "eslint-loader": "^4.0.2",
    "framer-motion": "^2.6.15",
    "next": "^9.5.4",
    "next-compose-plugins": "^2.2.0",
    "next-images": "^1.5.0",
    "next-videos": "^1.4.0",
    "node": "^14.13.0",
    "node-sass": "^4.14.1",
    "prop-types": "^15.7.2",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "react-hamburger-menu": "^1.2.1",
    "recompose": "^0.30.0",
    "sass": "^1.26.11",
    "shopify-buy": "^2.11.0",
    "swiper": "^6.3.2"
},
"devDependencies": {
    "@babel/plugin-transform-react-jsx": "^7.10.4",
    "babel-eslint": "^10.0.3",
    "eslint": "^7.9.0",
    "eslint-config-airbnb": "^18.2.0",
    "eslint-config-babel": "^9.0.0",
    "eslint-config-prettier": "^6.10.0",
    "eslint-plugin-import": "^2.22.0",
    "eslint-plugin-jsx-a11y": "^6.3.1",
    "eslint-plugin-node": "^11.1.0",
    "eslint-plugin-prettier": "^3.1.2",
    "eslint-plugin-react": "^7.20.6",
    "eslint-plugin-react-hooks": "^4.1.2",
    "eslint-plugin-standard": "^4.0.1",
    "postcss-flexbugs-fixes": "4.2.1",
    "postcss-preset-env": "^6.7.0",
    "prettier": "^1.19.1",
    "tailwindcss": "^1.8.10"
}
module.exports = {
    plugins: [
        require('postcss-import'),
        require('tailwindcss'),
        require('postcss-preset-env')({ stage: 1 }),
        require('postcss-flexbugs-fixes'),
    ],
};
const withPlugins = require('next-compose-plugins');

const withSass = require('@zeit/next-sass');

const withImages = require('next-images');

const withCSS = require('@zeit/next-css');

const withBundleAnalyzer = require('@next/bundle-analyzer')({
    enabled: process.env.ANALYZE === 'true',
});

const withVideos = require('next-videos');

// next.config.js
module.exports = withPlugins([withImages, withSass, withCSS, withVideos], {
    plugins: ['postcss-import', 'tailwindcss', 'autoprefixer'],
    serverRuntimeConfig: {
        // Will only be available on the server side
        mySecret: 'secret',
        secondSecret: process.env.SECOND_SECRET, // Pass through env variables
    },
    publicRuntimeConfig: {
        // Will be available on both server and client
        staticFolder: '/public',
    },
    module: {
        loaders: [
            {
                test: /.jsx?$/,
                loader: 'babel-loader',
                exclude: /node_modules/,
            },
            {
                test: /\.css$/,
                loader: 'style-loader!css-loader',
            },
            {
                test: /\.(jpe?g|png|gif|woff|woff2|eot|ttf|svg)(\?[a-z0-9=.]+)?$/,
                loader: 'url-loader?limit=100000',
            },
            {
                test: /\.(eot|woff|woff2|otf|ttf|svg|png|jpg|gif|webm)$/,
                use: {
                    loader: 'url-loader',
                    options: {
                        limit: 100000,
                        name: '[name].[ext]',
                    },
                },
            },
            {
                test: /\.style.js$/,
                use: [
                    'style-loader',
                    {
                        loader: 'css-loader',
                        options: { importLoaders: 1 },
                    },
                    {
                        loader: 'postcss-loader',
                        options: { parser: 'sugarss', exec: true },
                    },
                ],
            },
        ],
    },
    webpack(config) {
        config.module.rules.push(
            {
                test: /\.(eot|woff|woff2|otf|ttf|svg|png|jpg|gif)$/,
                use: {
                    loader: 'url-loader',
                    options: {
                        limit: 100000,
                        name: '[name].[ext]',
                    },
                },
            },
            {
                test: /\.style.js$/,
                use: [
                    'style-loader',
                    {
                        loader: 'css-loader',
                        options: { importLoaders: 1 },
                    },
                    {
                        loader: 'postcss-loader',
                        options: { parser: 'sugarss', exec: true },
                    },
                ],
            },
            {
                test: /\.(js|jsx)$/,
                exclude: /node_modules/,
                use: ['babel-loader', 'eslint-loader'],
            },
        );
        withBundleAnalyzer({});
        return config;
    },
});