Initial commit
commit
2d312d355c
@ -0,0 +1 @@
|
||||
node_modules
|
@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
|
||||
const defaultValue = require("default-value");
|
||||
|
||||
module.exports = function createSimpleBundlePreset({source, destinationFolder, destinationFilename, publicPath} = {}) {
|
||||
return {
|
||||
entry: {
|
||||
main: [
|
||||
defaultValue(source, "./src/index.js")
|
||||
]
|
||||
},
|
||||
output: {
|
||||
publicPath: publicPath,
|
||||
path: destinationFolder,
|
||||
filename: defaultValue(destinationFilename, "bundle.js")
|
||||
}
|
||||
}
|
||||
};
|
@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "@joepie91/webpack-preset-simple-bundle",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
"default-value": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/default-value/-/default-value-1.0.0.tgz",
|
||||
"integrity": "sha1-jG9SpaEZP+eP3J+G63HRbJdXyDo=",
|
||||
"requires": {
|
||||
"es6-promise-try": "0.0.1"
|
||||
}
|
||||
},
|
||||
"es6-promise-try": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/es6-promise-try/-/es6-promise-try-0.0.1.tgz",
|
||||
"integrity": "sha1-EPFA2tJ0Wc75SZc+XSGgh/cnSyA="
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "@joepie91/webpack-preset-simple-bundle",
|
||||
"version": "1.0.0",
|
||||
"description": "A preset for simple Webpack bundles with one entry point and one output bundle",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@git.cryto.net:joepie91/node-webpack-preset-simple-bundle.git"
|
||||
},
|
||||
"keywords": [
|
||||
"webpack",
|
||||
"preset"
|
||||
],
|
||||
"author": "Sven Slootweg <admin@cryto.net>",
|
||||
"license": "WTFPL",
|
||||
"dependencies": {
|
||||
"default-value": "^1.0.0"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue