Snippets Collections
const path = require("path");
let sassRule= {
        test: /\.sass|scss$/i,
        use: ["style-loader", "css-loader", "sass-loader"],
    }
 module.exports = {
  entry: path.resolve(__dirname, "/src/index.js") // import sass file on javascript file
   module: {rules: sassRule}
 }
npm install sass-loader sass webpack --save-dev
module.exports = {
  module: {
    rules: [
      {
        test: /\.scss$/,
        loader: "postcss-loader",
        options: {
          postcssOptions: {
            ident: "postcss",
            syntax: "postcss-scss",
            plugins: [
              require("postcss-import"),
              require("tailwindcss"),
              require("autoprefixer"),
            ],
          },
        },
      },
    ],
  },
};
star

Sun Jul 16 2023 19:58:07 GMT+0000 (Coordinated Universal Time) https://www.google.com/search?q

#javascript #webpack
star

Sun Jul 16 2023 19:57:52 GMT+0000 (Coordinated Universal Time) https://www.google.com/search?q

#html #webpack
star

Tue Dec 07 2021 23:31:50 GMT+0000 (Coordinated Universal Time) https://shrutibalasa.hashnode.dev/install-and-setup-tailwind-css-2-with-angular-11

#webpack #angular #tailwindcss

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension