Skip to content

Commit

Permalink
Remove sass/scss related configuration items
Browse files Browse the repository at this point in the history
  • Loading branch information
ylavoie committed Jun 30, 2020
1 parent 0620563 commit eea31e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 51 deletions.
11 changes: 0 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,6 @@
"markdownlint": "0.20.3",
"markdownlint-cli": "0.23.1",
"npm-run-all": "4.1.5",
"postcss": "7.0.32",
"postcss-assets": "^5.0.0",
"postcss-assets-urls": "^0.2.3",
"postcss-assets-webpack-plugin": "^3.0.0",
"postcss-browser-reporter": "^0.6.0",
"postcss-import": "12.0.1",
"postcss-loader": "3.0.0",
"postcss-preset-env": "6.7.0",
"postcss-reporter": "^6.0.1",
"postcss-stats-reporter": "^0.4.1",
"postcss-url": "^9.0.0",
"prettier": "^2.0.5",
"prettier-plugin-html-template-literals": "1.0.5",
"style-loader": "^1.2.1",
Expand Down
41 changes: 1 addition & 40 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,45 +40,6 @@ const javascript = {
};

// Used in css loader definition below and webpack-multiple-themes-compile plugin
const cssRules = [
// Creates `style` nodes from JS strings
// 'style-loader', // requires a document, thus js code. Not for css only
// Translates CSS into CommonJS
{
loader: "css-loader",
options: {
modules: true,
sourceMap: !devMode,
importLoaders: 1,
url: false
}
},
// inline images
{
loader: "postcss-loader",
options: {
ident: "postcss",
plugins: (loader) => [
require("postcss-import")(),
require("postcss-url")(),
// require('postcss-preset-env')(),
require("cssnano")(!devMode),
// add your "plugins" here
// ...
// and if you want to compress,
// just use css-loader option that already use cssnano under the hood
require("postcss-browser-reporter")(),
require("postcss-reporter")()
]
}
}
];

const css = {
test: /\.s[ac]ss$/i,
use: cssRules
};

const images = {
test: /\.(png|jpe?g|gif)$/i,
use: [
Expand Down Expand Up @@ -311,7 +272,7 @@ const webpackConfigs = {
},

module: {
rules: [javascript, css, images, svg, html, ...themes.module.rules]
rules: [javascript, images, svg, html, ...themes.module.rules]
},

plugins: [...pluginsList, ...themes.plugins],
Expand Down

0 comments on commit eea31e1

Please sign in to comment.