Sha256: 104b61963067e8f20c7cd4ea1f379aff0b66ee5490a4c0f9172cc18c1094a579
Contents?: true
Size: 1.27 KB
Versions: 2
Compression:
Stored size: 1.27 KB
Contents
const path = require('path'); const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const RemoveEmptyScriptsPlugin = require('webpack-remove-empty-scripts'); module.exports = { mode: 'production', entry: { login: path.resolve(__dirname, 'frontend/index.scss'), userbox: path.resolve(__dirname, 'frontend/userbox.scss') }, output: { path: path.resolve(__dirname, 'app/assets/bundle/trestle/auth') }, optimization: { minimizer: [ new CssMinimizerPlugin({}) ] }, module: { rules: [ { test: /\.s?[ac]ss$/, use: [ { loader: MiniCssExtractPlugin.loader }, { loader: 'css-loader' }, { loader: 'postcss-loader', options: { postcssOptions: { plugins: [ ['autoprefixer', {}] ] } } }, { loader: 'sass-loader', options: { sassOptions: { quietDeps: true } } } ] } ] }, plugins: [ new RemoveEmptyScriptsPlugin(), new MiniCssExtractPlugin({ filename: '[name].css' }) ] }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trestle-auth-0.5.0 | webpack.config.js |
trestle-auth-0.5.0.pre2 | webpack.config.js |