Skip to content

How i can set target: 'serverless' in file next.config.js #11279

Answered by approached
approached asked this question in Help
Discussion options

You must be logged in to vote

Thank you so much for the clearness.
This code works for me good:

const withSass = require("@zeit/next-sass");
const tailwindCss = require("tailwindcss");
module.exports = withSass({
        webpack(config, options) {
            const rules = [{
                test: /\.scss$/,
                use: [
                    {
                        loader: "postcss-loader",
                        options: {
                            ident: "postcss",
                            plugins: [tailwindCss("./tailwind.config.js")]
                        }
                    },
                    {loader: "sass-loader"}
                ]
            }
            ];
            return {

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by approached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants