This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refining middleware concept, splitting presets into middleware packages
- Loading branch information
1 parent
96ce5bf
commit f202977
Showing
69 changed files
with
15,413 additions
and
5,310 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const { BannerPlugin } = require('webpack'); | ||
const merge = require('deepmerge'); | ||
|
||
module.exports = (options = {}) => config => config | ||
.plugin('banner') | ||
.use(BannerPlugin, merge({ | ||
banner: `require('source-map-support').install();`, | ||
raw: true, | ||
entryOnly: true | ||
}, options)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "neutrino-middleware-banner", | ||
"version": "5.0.0", | ||
"description": "Neutrino middleware for injecting a banner into bundled files", | ||
"main": "index.js", | ||
"keywords": [ | ||
"neutrino", | ||
"neutrino-middleware", | ||
"banner" | ||
], | ||
"author": "Eli Perelman <eli@eliperelman.com>", | ||
"license": "MIT", | ||
"repository": "mozilla-neutrino/neutrino-dev", | ||
"homepage": "https://neutrino.js.org", | ||
"bugs": "https://github.com/mozilla-neutrino/neutrino-dev/issues", | ||
"dependencies": { | ||
"deepmerge": "^1.3.2", | ||
"webpack": "^2.2.1" | ||
} | ||
} |
Oops, something went wrong.