Skip to content

Commit 04f6e91

Browse files
committed
Rename to raw-custom-loader.
1 parent 582e9ac commit 04f6e91

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# custom-loader
2-
> Custom loader module for webpack.
1+
# raw-custom-loader
2+
> Raw custom loader module for webpack.
33
44
## Install
5-
`$ npm install custom-loader`
5+
`$ npm install raw-custom-loader`
66

77
## Usage
8-
This module is useful for those times you want a loader but cant find or want to write one. How about just writing a function instead?
8+
This module is useful for those times you want a loader but cant find or want to write one. How about just writing a function instead? Please note this is a raw loader.
99

1010
### Example 1
1111
Performs a simple string replace.
@@ -16,7 +16,7 @@ Performs a simple string replace.
1616
rules: [{
1717
test: /\.js$/,
1818
use: {
19-
loader: 'custom-loader',
19+
loader: 'raw-custom-loader',
2020
options: {
2121
callback: (source) => {
2222
return source.replace('foo', 'bar');
@@ -37,7 +37,7 @@ Using [`sharp`](https://www.npmjs.com/package/sharp), returns the grayscale vers
3737
rules: [{
3838
test: /\.(gif|jpe?g|png|svg|tiff|webp)$/,
3939
use: {
40-
loader: 'custom-loader',
40+
loader: 'raw-custom-loader',
4141
options: {
4242
callback: (source, sourceMap, callback) => {
4343
sharp(source).grayscale().toBuffer(callback);

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name" : "custom-loader",
2+
"name" : "raw-custom-loader",
33
"version" : "0.1.0",
44
"description" : "Custom loader module for webpack.",
55
"keywords" : [ "webpack", "loader", "module", "callback" ],
6-
"homepage" : "https://github.com/vseventer/custom-loader",
7-
"bugs" : "https://github.com/vseventer/custom-loader/issues",
6+
"homepage" : "https://github.com/vseventer/raw-custom-loader",
7+
"bugs" : "https://github.com/vseventer/raw-custom-loader/issues",
88
"license" : "MIT",
99
"author" : "Mark van Seventer <mark@vseventer.com> (http://www.vseventer.com)",
10-
"repository" : "vseventer/custom-loader",
10+
"repository" : "vseventer/raw-custom-loader",
1111
"main" : "index.js",
1212
"scripts" : {
1313
"pretest" : "semistandard | snazzy",

test/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ const tmp = require('tmp');
3535
const webpack = require('webpack');
3636

3737
// Configure.
38-
const customLoader = require.resolve('../');
38+
const rawCustomLoader = require.resolve('../');
3939

4040
// Test suite.
41-
describe('custom-loader', () => {
41+
describe('raw-custom-loader', () => {
4242
// Output.
4343
const output = tmp.fileSync({ postfix: '.js' });
4444
after(output.removeCallback);
4545

4646
// Tests.
47-
it('should allow a custom loader', (done) => {
47+
it('should allow a raw custom loader', (done) => {
4848
const replacement = `module.exports = ${Math.random()};`;
4949
webpack({
5050
context: __dirname,
@@ -58,7 +58,7 @@ describe('custom-loader', () => {
5858
{
5959
test: /.js$/,
6060
use: {
61-
loader: customLoader,
61+
loader: rawCustomLoader,
6262
options: {
6363
callback: (source) => replacement
6464
}
@@ -90,7 +90,7 @@ describe('custom-loader', () => {
9090
rules: [
9191
{
9292
test: /.js$/,
93-
use: customLoader
93+
use: rawCustomLoader
9494
}
9595
]
9696
}

0 commit comments

Comments
 (0)