mirror of
https://github.com/standardnotes/app
synced 2026-01-16 19:04:58 -05:00
50 lines
961 B
JavaScript
50 lines
961 B
JavaScript
const path = require('path')
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
|
|
|
module.exports = (_, { mode }) => ({
|
|
entry: {
|
|
styles: path.resolve(__dirname, 'src/Styles/main.scss'),
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
},
|
|
optimization: {
|
|
minimize: false,
|
|
splitChunks: {
|
|
cacheGroups: {
|
|
styles: {
|
|
name: 'styles',
|
|
type: 'css/mini-extract',
|
|
chunks: 'all',
|
|
enforce: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.(scss|css)$/,
|
|
use: [
|
|
MiniCssExtractPlugin.loader,
|
|
'css-loader',
|
|
{
|
|
loader: 'sass-loader',
|
|
options: {
|
|
sassOptions: {
|
|
outputStyle: 'expanded',
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
|
|
plugins: [
|
|
new MiniCssExtractPlugin({
|
|
filename: 'stylekit.css',
|
|
}),
|
|
],
|
|
})
|