Skip to content

Deprecate loaders #5294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/content/loaders/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ contributors:
- snitin315
- anshumanv
- jamesgeorge007
- chenxsan
---

webpack enables use of [loaders](/concepts/loaders) to preprocess files. This allows you to bundle any static resource way beyond JavaScript. You can easily write your own loaders using Node.js.
Expand Down Expand Up @@ -56,10 +57,6 @@ Loaders are activated by using `loadername!` prefixes in `require()` statements,
- [`postcss-loader`](/loaders/postcss-loader) Loads and transforms a CSS/SSS file using [PostCSS](http://postcss.org)
- [`stylus-loader`](/loaders/stylus-loader/) Loads and compiles a Stylus file

## Testing

- [`mocha-loader`](/loaders/mocha-loader) Tests with [mocha](https://mochajs.org/) (Browser/NodeJS)

## Frameworks

- [`vue-loader`](https://github.com/vuejs/vue-loader) Loads and compiles [Vue Components](https://vuejs.org/v2/guide/components.html)
Expand Down
3 changes: 3 additions & 0 deletions src/utilities/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ const excludedLoaders = [
'webpack-contrib/raw-loader',
'webpack-contrib/url-loader',
'webpack-contrib/file-loader',
'webpack-contrib/null-loader',
'webpack-contrib/mocha-loader',
'webpack-contrib/istanbul-instrumenter-loader',
];
const excludedPlugins = [
'webpack-contrib/component-webpack-plugin',
Expand Down
6 changes: 6 additions & 0 deletions webpack.ssg.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ module.exports = (env) =>
'loaders/url-loader': 'https://v4.webpack.js.org/loaders/url-loader',
'loaders/file-loader':
'https://v4.webpack.js.org/loaders/file-loader',
'loaders/null-loader':
'https://v4.webpack.js.org/loaders/null-loader/',
'loaders/mocha-loader':
'https://v4.webpack.js.org/loaders/mocha-loader/',
'loaders/istanbul-instrumenter-loader':
'https://v4.webpack.js.org/loaders/istanbul-instrumenter-loader/',
},
}),
new CopyWebpackPlugin({
Expand Down