Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
a3ec26d3
Commit
a3ec26d3
authored
Mar 30, 2020
by
Guy Bedford
Committed by
Joe Haddad
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ignore-loader
parent
8dad5abd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
index.ts
packages/next/build/webpack/config/blocks/css/index.ts
+1
-1
package.json
packages/next/package.json
+1
-1
taskfile.js
packages/next/taskfile.js
+9
-0
No files found.
packages/next/build/webpack/config/blocks/css/index.ts
View file @
a3ec26d3
...
@@ -183,7 +183,7 @@ export const css = curry(async function css(
...
@@ -183,7 +183,7 @@ export const css = curry(async function css(
regexCssGlobal
,
regexCssGlobal
,
(
scssEnabled
&&
regexSassGlobal
)
as
RegExp
,
(
scssEnabled
&&
regexSassGlobal
)
as
RegExp
,
].
filter
(
Boolean
),
].
filter
(
Boolean
),
use
:
require
.
resolve
(
'ignore-loader'
),
use
:
require
.
resolve
(
'
next/dist/compiled/
ignore-loader'
),
},
},
],
],
})
})
...
...
packages/next/package.json
View file @
a3ec26d3
...
@@ -82,7 +82,6 @@
...
@@ -82,7 +82,6 @@
"css-loader"
:
"3.3.0"
,
"css-loader"
:
"3.3.0"
,
"cssnano-simple"
:
"1.0.0"
,
"cssnano-simple"
:
"1.0.0"
,
"fork-ts-checker-webpack-plugin"
:
"3.1.1"
,
"fork-ts-checker-webpack-plugin"
:
"3.1.1"
,
"ignore-loader"
:
"0.1.2"
,
"jest-worker"
:
"24.9.0"
,
"jest-worker"
:
"24.9.0"
,
"loader-utils"
:
"2.0.0"
,
"loader-utils"
:
"2.0.0"
,
"mini-css-extract-plugin"
:
"0.8.0"
,
"mini-css-extract-plugin"
:
"0.8.0"
,
...
@@ -172,6 +171,7 @@
...
@@ -172,6 +171,7 @@
"fresh"
:
"0.5.2"
,
"fresh"
:
"0.5.2"
,
"gzip-size"
:
"5.1.1"
,
"gzip-size"
:
"5.1.1"
,
"http-proxy"
:
"1.18.0"
,
"http-proxy"
:
"1.18.0"
,
"ignore-loader"
:
"0.1.2"
,
"is-docker"
:
"2.0.0"
,
"is-docker"
:
"2.0.0"
,
"is-wsl"
:
"2.1.1"
,
"is-wsl"
:
"2.1.1"
,
"json5"
:
"2.1.2"
,
"json5"
:
"2.1.2"
,
...
...
packages/next/taskfile.js
View file @
a3ec26d3
...
@@ -254,6 +254,14 @@ export async function ncc_http_proxy(task, opts) {
...
@@ -254,6 +254,14 @@ export async function ncc_http_proxy(task, opts) {
.
target
(
'dist/compiled/http-proxy'
)
.
target
(
'dist/compiled/http-proxy'
)
}
}
// eslint-disable-next-line camelcase
// eslint-disable-next-line camelcase
externals
[
'ignore-loader'
]
=
'next/dist/compiled/ignore-loader'
export
async
function
ncc_ignore_loader
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'ignore-loader'
)))
.
ncc
({
packageName
:
'ignore-loader'
,
externals
})
.
target
(
'dist/compiled/ignore-loader'
)
}
// eslint-disable-next-line camelcase
externals
[
'is-docker'
]
=
'next/dist/compiled/is-docker'
externals
[
'is-docker'
]
=
'next/dist/compiled/is-docker'
export
async
function
ncc_is_docker
(
task
,
opts
)
{
export
async
function
ncc_is_docker
(
task
,
opts
)
{
await
task
await
task
...
@@ -488,6 +496,7 @@ export async function precompile(task) {
...
@@ -488,6 +496,7 @@ export async function precompile(task) {
'ncc_fresh'
,
'ncc_fresh'
,
'ncc_gzip_size'
,
'ncc_gzip_size'
,
'ncc_http_proxy'
,
'ncc_http_proxy'
,
'ncc_ignore_loader'
,
'ncc_is_docker'
,
'ncc_is_docker'
,
'ncc_is_wsl'
,
'ncc_is_wsl'
,
'ncc_json5'
,
'ncc_json5'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment