This commit is contained in:
chrosey
2017-09-13 07:52:34 +02:00
parent a1f16c37f4
commit 2340b0226b
24621 changed files with 2912161 additions and 149 deletions
+21
View File
@@ -0,0 +1,21 @@
Copyright (c) 2014 Sasha Koss
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+29
View File
@@ -0,0 +1,29 @@
# on-build-webpack
[Webpack](http://webpack.github.io/) plugin that gives ability to add callback
after build.
## Installation
```
npm install --save-dev on-build-webpack
```
## Usage
In config file:
``` javascript
var WebpackOnBuildPlugin = require('on-build-webpack');
// ...
module: {
plugins: [
new WebpackOnBuildPlugin(function(stats) {
// Do whatever you want...
}),
]
},
// ...
```
+26
View File
@@ -0,0 +1,26 @@
/**
* @module WebpackOnBuildPlugin
*/
/**
* @constructor
* @param {onBuildCallback} callback - will be called right after build.
*/
function WebpackOnBuildPlugin(callback) {
this.callback = callback;
};
/**
* @callback onBuildCallback
* @param {object} stats - webpack stats object
*/
/**
* @param {object} compiler
*/
WebpackOnBuildPlugin.prototype.apply = function(compiler) {
compiler.plugin('done', this.callback);
};
module.exports = WebpackOnBuildPlugin;
+80
View File
@@ -0,0 +1,80 @@
{
"_args": [
[
{
"raw": "on-build-webpack@^0.1.0",
"scope": null,
"escapedName": "on-build-webpack",
"name": "on-build-webpack",
"rawSpec": "^0.1.0",
"spec": ">=0.1.0 <0.2.0",
"type": "range"
},
"c:\\xampp\\htdocs\\laravel\\node_modules\\laravel-mix"
]
],
"_from": "on-build-webpack@>=0.1.0 <0.2.0",
"_id": "on-build-webpack@0.1.0",
"_inCache": true,
"_location": "/on-build-webpack",
"_npmUser": {
"name": "kossnocorp",
"email": "kossnocorp@gmail.com"
},
"_npmVersion": "2.0.0",
"_phantomChildren": {},
"_requested": {
"raw": "on-build-webpack@^0.1.0",
"scope": null,
"escapedName": "on-build-webpack",
"name": "on-build-webpack",
"rawSpec": "^0.1.0",
"spec": ">=0.1.0 <0.2.0",
"type": "range"
},
"_requiredBy": [
"/laravel-mix"
],
"_resolved": "https://registry.npmjs.org/on-build-webpack/-/on-build-webpack-0.1.0.tgz",
"_shasum": "a287c0e17766e6141926e5f2cbb0d8bb53b76814",
"_shrinkwrap": null,
"_spec": "on-build-webpack@^0.1.0",
"_where": "c:\\xampp\\htdocs\\laravel\\node_modules\\laravel-mix",
"author": {
"name": "Sasha Koss",
"email": "kossnocorp@gmail.com"
},
"bugs": {
"url": "https://github.com/kossnocorp/on-build-webpack/issues"
},
"dependencies": {},
"description": "Webpack plugin that gives ability to add callback after build",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "a287c0e17766e6141926e5f2cbb0d8bb53b76814",
"tarball": "https://registry.npmjs.org/on-build-webpack/-/on-build-webpack-0.1.0.tgz"
},
"gitHead": "652436be7c78d33a49f04e81f2221d40c38aafb4",
"homepage": "https://github.com/kossnocorp/on-build-webpack",
"keywords": [
"webpack"
],
"license": "MIT",
"main": "on_build_webpack.js",
"maintainers": [
{
"name": "kossnocorp",
"email": "kossnocorp@gmail.com"
}
],
"name": "on-build-webpack",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/kossnocorp/on-build-webpack.git"
},
"scripts": {},
"version": "0.1.0"
}