summaryrefslogtreecommitdiff
path: root/sass/webpack.config.js
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-11-21 14:13:41 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-11-21 14:13:41 +0100
commite3fba3dcd493f609e107435867c4a67cb7ee420f (patch)
treecd228574b1d4f4e446fac87e9d6fe3eeffe27b63 /sass/webpack.config.js
parent88d3e67474c518a5c422b5f0e47c58147f31fe6e (diff)
import materialize sass sources instead of relying on npm
Diffstat (limited to 'sass/webpack.config.js')
-rw-r--r--sass/webpack.config.js47
1 files changed, 0 insertions, 47 deletions
diff --git a/sass/webpack.config.js b/sass/webpack.config.js
deleted file mode 100644
index 9696dbb..0000000
--- a/sass/webpack.config.js
+++ /dev/null
@@ -1,47 +0,0 @@
-const MiniCssExtractPlugin = require('mini-css-extract-plugin');
-const path = require('path');
-console.log(path.resolve('../public/static/css/'));
-
-module.exports = {
- mode: 'production',
- entry: {
- light: './src/light/index.scss',
- dark: './src/dark/index.scss',
- },
- output: {
- path: path.resolve('../public/static/css/'),
- },
- plugins: [
- new MiniCssExtractPlugin({
- filename: '[name].min.css',
- chunkFilename: '[id].css',
- }),
- ],
- module: {
- rules: [
- {
- test: /\.s?css$/,
- use: [
- MiniCssExtractPlugin.loader,
- {
- loader: 'css-loader',
- options: {
- importLoaders: 2,
- },
- },
- {
- loader: 'postcss-loader',
- options: {
- ident: 'postcss',
- plugins: loader => [
- require('postcss-preset-env')(),
- require('cssnano')(),
- ],
- },
- },
- 'sass-loader',
- ],
- },
- ],
- },
-};