UNPKG

bundler-plate

Version:

A CLI generates a boilerplate and config file for webpack/gulp with the most recommended and commonly used configurations.

22 lines (20 loc) 385 B
/** * * @param {boolean} extractCSS * * @return {string} * */ module.exports = (extractCSS) => { return ` { test: /\\.s[a|c]ss$/, use: [${extractCSS ? "MiniCSSExtractPlugin.loader" : `"style-loader"`}, "css-loader?url=false", { loader: "postcss-loader", options: { plugins: () => [autoprefixer()] } }, "sass-loader"]}`; };