Sha256: 5d6d7200881402500116e5e6a3cb1f2992dfbefdb5b2a9164881b10563e2c9fc
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 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: { bundle: 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' } ] } ] }, 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.pre | webpack.config.js |
trestle-auth-0.4.4 | webpack.config.js |