Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

webpack sass

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}
 }
 
PREVIOUS NEXT
Tagged: #webpack #sass
ADD COMMENT
Topic
Name
8+7 =