Sha256: 93901aaba49a41205ee5a359412bf3fcc5c9f52be569e2ae2dd2cc4ce2041cd9
Contents?: true
Size: 1.18 KB
Versions: 5
Compression:
Stored size: 1.18 KB
Contents
const path = require('path'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries'); module.exports = { 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: { splitChunks: { cacheGroups: { styles: { name: 'bundle', test: /\.css$/, chunks: 'all', enforce: true } } }, minimizer: [ new OptimizeCSSAssetsPlugin({}) ] }, module: { rules: [ { test: /\.s?[ac]ss$/, use: [ { loader: MiniCssExtractPlugin.loader }, { loader: 'css-loader' }, { loader: 'postcss-loader', options: { plugins: [ require('autoprefixer') ] } }, { loader: 'sass-loader' } ] } ] }, plugins: [ new FixStyleOnlyEntriesPlugin(), new MiniCssExtractPlugin({ filename: '[name].css' }) ] }
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
trestle-auth-0.4.3 | webpack.config.js |
trestle-auth-0.4.2 | webpack.config.js |
trestle-auth-0.4.1 | webpack.config.js |
trestle-auth-0.4.0 | webpack.config.js |
trestle-auth-0.3.0 | webpack.config.js |