Remove CRA stuff, revert to custom webpack config
This commit is contained in:
@ -31,7 +31,7 @@ function rewriteBareModuleIdentifiers(file, packageConfig, callback) {
|
||||
/**
|
||||
* Send the file, JSON metadata, or HTML directory listing.
|
||||
*/
|
||||
function serveFile(req, res, next) {
|
||||
function serveFile(req, res) {
|
||||
if (req.query.meta != null) {
|
||||
// Serve JSON metadata.
|
||||
getMetadata(req.packageDir, req.filename, req.stats, MaximumDepth, (error, metadata) => {
|
||||
|
5
server/middleware/utils/.eslintrc
Normal file
5
server/middleware/utils/.eslintrc
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"env": {
|
||||
"jest": true
|
||||
}
|
||||
}
|
5
server/middleware/utils/__tests__/.eslintrc
Normal file
5
server/middleware/utils/__tests__/.eslintrc
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"env": {
|
||||
"jest": true
|
||||
}
|
||||
}
|
@ -17,7 +17,7 @@ function stripNamePrefix(headers) {
|
||||
// so we shorten that to just "index.js" here. A few packages use a
|
||||
// prefix other than "package/". e.g. the firebase package uses the
|
||||
// "firebase_npm/" prefix. So we just strip the first dir name.
|
||||
headers.name = headers.name.replace(/^[^\/]+\//, "")
|
||||
headers.name = headers.name.replace(/^[^/]+\//, "")
|
||||
return headers
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user