Sha256: 221361bdae2a2431283cd221c36bed63ab903f95ea3e7fed53a48cbef25b5369
Contents?: true
Size: 1.11 KB
Versions: 4
Compression:
Stored size: 1.11 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: { search: path.resolve(__dirname, 'frontend/index.scss') }, output: { path: path.resolve(__dirname, 'app/assets/bundle/trestle') }, 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
trestle-search-0.4.3 | webpack.config.js |
trestle-search-0.4.2 | webpack.config.js |
trestle-search-0.4.1 | webpack.config.js |
trestle-search-0.4.0 | webpack.config.js |