Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: webpack-contrib/sass-loader
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v13.0.2
Choose a base ref
...
head repository: webpack-contrib/sass-loader
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v13.1.0
Choose a head ref
  • 13 commits
  • 25 files changed
  • 5 contributors

Commits on Jul 2, 2022

  1. chore: update dependencies to the latest version (#1071)

    * chore: update dependencies to the latest version
    
    * chore: update snapshots
    ersachin3112 authored Jul 2, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    997f3eb View commit details

Commits on Jul 25, 2022

  1. chore(deps): bump terser from 5.13.1 to 5.14.2 (#1075)

    Bumps [terser](https://github.com/terser/terser) from 5.13.1 to 5.14.2.
    - [Release notes](https://github.com/terser/terser/releases)
    - [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/terser/terser/commits)
    
    ---
    updated-dependencies:
    - dependency-name: terser
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 25, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0b7a36a View commit details

Commits on Jul 26, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    55423ae View commit details

Commits on Aug 15, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    78c0590 View commit details

Commits on Aug 17, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6b01c64 View commit details

Commits on Sep 9, 2022

  1. Copy the full SHA
    a327414 View commit details

Commits on Sep 18, 2022

  1. Copy the full SHA
    8ae327d View commit details
  2. Copy the full SHA
    8c8cece View commit details

Commits on Sep 20, 2022

  1. Copy the full SHA
    52584cf View commit details

Commits on Sep 22, 2022

  1. Copy the full SHA
    3a34fef View commit details

Commits on Oct 6, 2022

  1. chore: update dependencies to the latest version (#1093)

    * chore: update dependencies to the latest version
    
    * chore: update dependencies to the latest version
    ersachin3112 authored Oct 6, 2022
    Copy the full SHA
    edab08f View commit details
  2. Copy the full SHA
    6e02c64 View commit details
  3. Copy the full SHA
    b31751d View commit details
23 changes: 23 additions & 0 deletions .github/workflows/cancel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Cancel
on:
push:
branches:
- master
- next
pull_request:
branches:
- master
- next
permissions: {} # none
jobs:
cancel:
permissions:
actions: write
name: Cancel Previous Runs
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: styfle/cancel-workflow-action@0.10.0
with:
workflow_id: nodejs.yml
access_token: ${{ github.token }}
5 changes: 4 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -10,6 +10,9 @@ on:
- master
- next

permissions:
contents: read

jobs:
lint:
name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }}
@@ -45,7 +48,7 @@ jobs:
run: npm run security -- --only=prod

- name: Check commit message
uses: wagoid/commitlint-github-action@v4
uses: wagoid/commitlint-github-action@v5

test:
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [13.1.0](https://github.com/webpack-contrib/sass-loader/compare/v13.0.2...v13.1.0) (2022-10-06)


### Features

* allow to extend `conditionNames` ([#1092](https://github.com/webpack-contrib/sass-loader/issues/1092)) ([6e02c64](https://github.com/webpack-contrib/sass-loader/commit/6e02c64da80e3c8b3b6399923b7268aaf957d2cb))

### [13.0.2](https://github.com/webpack-contrib/sass-loader/compare/v13.0.1...v13.0.2) (2022-06-27)


67 changes: 64 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -798,10 +798,9 @@ module.exports = {

For production builds it's recommended to extract the CSS from your bundle being able to use parallel loading of CSS/JS resources later on.

There are two possibilities to extract a style sheet from the bundle:
There are four possibilities to extract a style sheet from the bundle:

- [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin)
- [extract-loader](https://github.com/peerigon/extract-loader) (simpler, but specialized on the css-loader's output)
#### 1. [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin)

**webpack.config.js**

@@ -835,6 +834,68 @@ module.exports = {
};
```

#### 2. [Asset Modules](https://webpack.js.org/guides/asset-modules/)

**webpack.config.js**

```js
module.exports = {
entry: [__dirname + "/src/scss/app.scss"],
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: [],
},
{
test: /\.scss$/,
exclude: /node_modules/,
type: "asset/resource",
generator: {
filename: "bundle.css",
},
use: ["sass-loader"],
},
],
},
};
```

#### 3. [extract-loader](https://github.com/peerigon/extract-loader) (simpler, but specialized on the css-loader's output)

#### 4. [file-loader](https://github.com/webpack-contrib/file-loader) (deprecated--should only be used in Webpack v4)

**webpack.config.js**

```js
module.exports = {
entry: [__dirname + "/src/scss/app.scss"],
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: [],
},
{
test: /\.scss$/,
exclude: /node_modules/,
use: [
{
loader: "file-loader",
options: { outputPath: "css/", name: "[name].min.css" },
},
"sass-loader",
],
},
],
},
};
```

(source: https://stackoverflow.com/a/60029923/2969615)

### Source maps

Enables/Disables generation of source maps.
Loading