Remove CRA stuff, revert to custom webpack config

This commit is contained in:
MICHAEL JACKSON
2017-12-14 08:21:45 -08:00
parent 9c042e6368
commit f2daafadfb
28 changed files with 2097 additions and 2490 deletions

View File

@ -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) => {

View File

@ -0,0 +1,5 @@
{
"env": {
"jest": true
}
}

View File

@ -0,0 +1,5 @@
{
"env": {
"jest": true
}
}

View File

@ -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
}