Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Refining middleware concept, splitting presets into middleware packages
Browse files Browse the repository at this point in the history
  • Loading branch information
eliperelman committed Mar 2, 2017
1 parent 96ce5bf commit f202977
Show file tree
Hide file tree
Showing 69 changed files with 15,413 additions and 5,310 deletions.
17 changes: 0 additions & 17 deletions packages/neutrino-lint-base/README.md

This file was deleted.

55 changes: 0 additions & 55 deletions packages/neutrino-lint-base/src/index.js

This file was deleted.

10 changes: 10 additions & 0 deletions packages/neutrino-middleware-banner/index.js
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));
20 changes: 20 additions & 0 deletions packages/neutrino-middleware-banner/package.json
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"
}
}
Loading

0 comments on commit f202977

Please sign in to comment.