🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

mika-pack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mika-pack-plugin - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+19
-20
build/bundle.js
(function (factory) {
typeof define === 'function' && define.amd ? define(factory) :
factory();
typeof define === 'function' && define.amd ? define(factory) :
factory();
})((function () { 'use strict';
// import { version } from '../package.json';
class MyExampleWebpackPlugin {
// 定义 `apply` 方法
apply(compiler) {
// 指定要追加的事件钩子函数
compiler.hooks.compile.tapAsync(
'afterCompile',
(compilation, callback) => {
console.log('mika kira kira bling bling ~');
console.log('Here’s the `compilation` object which represents a single build of assets:', compilation);
// export {
// ddd as default,
// goTheHell,
// goTheHellArk
// }
// 使用 webpack 提供的 plugin API 操作构建结果
compilation.addModule(/* ... */);
function HelloWorldPlugin(options) {
// Setup the plugin instance with options...
}
callback();
}
);
}
}
module.exports = MyExampleWebpackPlugin;
HelloWorldPlugin.prototype.apply = function(compiler) {
compiler.plugin('done', function() {
console.log('Hello World! mika kira~');
});
};
module.exports = HelloWorldPlugin;
}));
//# sourceMappingURL=bundle.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"bundle.js","sources":["../src/main.js"],"sourcesContent":["// import { version } from '../package.json';\n\n// export default function () {\n// console.log('version ' + version);\n// }\r\n// export default function () {\n// import('./extra.js').then(({ default: foo }) => console.log(foo));\n// }\r\n// const extra = require('./extra.js')\r\n\r\n\r\n// module.exports = {\r\n// \tgoTheHell,\r\n// \textra\r\n// }\r\n// export default {\r\n// \tgoTheHell,\r\n// \tcallFuck:()=>{\r\n// \t\tconsole.log('ocena')\r\n// \t}\r\n// }\r\nconst ddd = {\r\n\ta:123,\r\n\tn:333\r\n}\r\n// export {\r\n// \tddd as default,\r\n// \tgoTheHell,\r\n// \tgoTheHellArk\r\n// }\r\n\r\nfunction HelloWorldPlugin(options) {\n // Setup the plugin instance with options...\n}\n\r\n\r\nHelloWorldPlugin.prototype.apply = function(compiler) {\n compiler.plugin('done', function() {\n\tconsole.log('Hello World! mika kira~');\n });\n};\n\nmodule.exports = HelloWorldPlugin; "],"names":[],"mappings":";;;;;CAAA;AACA;CAwBA;CACA;CACA;CACA;CACA;AACA;CACA,SAAS,gBAAgB,CAAC,OAAO,EAAE;CACnC;CACA,CAAC;AACD;AACA;CACA,gBAAgB,CAAC,SAAS,CAAC,KAAK,GAAG,SAAS,QAAQ,EAAE;CACtD,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW;CACrC,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;CACxC,GAAG,CAAC,CAAC;CACL,CAAC,CAAC;AACF;CACA,MAAM,CAAC,OAAO,GAAG,gBAAgB;;;;;;"}
{"version":3,"file":"bundle.js","sources":["../src/main.js"],"sourcesContent":["class MyExampleWebpackPlugin {\n // 定义 `apply` 方法\n apply(compiler) {\n // 指定要追加的事件钩子函数\n compiler.hooks.compile.tapAsync(\n 'afterCompile',\n (compilation, callback) => {\n console.log('mika kira kira bling bling ~');\n console.log('Here’s the `compilation` object which represents a single build of assets:', compilation);\n\n // 使用 webpack 提供的 plugin API 操作构建结果\n compilation.addModule(/* ... */);\n\n callback();\n }\n );\n }\n}\r\nmodule.exports = MyExampleWebpackPlugin;"],"names":[],"mappings":";;;;;EAAA,MAAM,sBAAsB,CAAC;EAC7B;EACA,EAAE,KAAK,CAAC,QAAQ,EAAE;EAClB;EACA,IAAI,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ;EACnC,MAAM,cAAc;EACpB,MAAM,CAAC,WAAW,EAAE,QAAQ,KAAK;EACjC,QAAQ,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;EACpD,QAAQ,OAAO,CAAC,GAAG,CAAC,4EAA4E,EAAE,WAAW,CAAC,CAAC;AAC/G;EACA;EACA,QAAQ,WAAW,CAAC,SAAS,WAAW,CAAC;AACzC;EACA,QAAQ,QAAQ,EAAE,CAAC;EACnB,OAAO;EACP,KAAK,CAAC;EACN,GAAG;EACH,CAAC;EACD,MAAM,CAAC,OAAO,GAAG,sBAAsB;;;;;;"}
{
"name": "mika-pack-plugin",
"version": "1.0.1",
"version": "1.0.2",
"author": "daryl",

@@ -5,0 +5,0 @@ "scripts": {