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
8dad5abd
Commit
8dad5abd
authored
Mar 30, 2020
by
Guy Bedford
Committed by
Joe Haddad
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
file-loader
parent
c855a382
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 @
8dad5abd
...
...
@@ -283,7 +283,7 @@ export const css = curry(async function css(
use
:
{
// `file-loader` always emits a URL reference, where `url-loader`
// might inline the asset as a data URI
loader
:
require
.
resolve
(
'file-loader'
),
loader
:
require
.
resolve
(
'
next/dist/compiled/
file-loader'
),
options
:
{
// Hash the file for immutable cacheability
name
:
'static/media/[name].[hash].[ext]'
,
...
...
packages/next/package.json
View file @
8dad5abd
...
...
@@ -81,7 +81,6 @@
"browserslist"
:
"4.8.3"
,
"css-loader"
:
"3.3.0"
,
"cssnano-simple"
:
"1.0.0"
,
"file-loader"
:
"4.2.0"
,
"fork-ts-checker-webpack-plugin"
:
"3.1.1"
,
"ignore-loader"
:
"0.1.2"
,
"jest-worker"
:
"24.9.0"
,
...
...
@@ -167,6 +166,7 @@
"dotenv-expand"
:
"5.1.0"
,
"escape-string-regexp"
:
"2.0.0"
,
"etag"
:
"1.8.1"
,
"file-loader"
:
"4.2.0"
,
"finally-polyfill"
:
"0.1.0"
,
"find-up"
:
"4.0.0"
,
"fresh"
:
"0.5.2"
,
...
...
packages/next/taskfile.js
View file @
8dad5abd
...
...
@@ -214,6 +214,14 @@ export async function ncc_etag(task, opts) {
.
target
(
'dist/compiled/etag'
)
}
// eslint-disable-next-line camelcase
externals
[
'file-loader'
]
=
'next/dist/compiled/file-loader'
export
async
function
ncc_file_loader
(
task
,
opts
)
{
await
task
.
source
(
opts
.
src
||
relative
(
__dirname
,
require
.
resolve
(
'file-loader'
)))
.
ncc
({
packageName
:
'file-loader'
,
externals
})
.
target
(
'dist/compiled/file-loader'
)
}
// eslint-disable-next-line camelcase
externals
[
'find-up'
]
=
'next/dist/compiled/find-up'
export
async
function
ncc_find_up
(
task
,
opts
)
{
await
task
...
...
@@ -475,6 +483,7 @@ export async function precompile(task) {
'ncc_dotenv_expand'
,
'ncc_escape_string_regexp'
,
'ncc_etag'
,
'ncc_file_loader'
,
'ncc_find_up'
,
'ncc_fresh'
,
'ncc_gzip_size'
,
...
...
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