webpack-configuration-templates

0.1.2 • Public • Published

webpack-configuration-templates

Contains webpack configuration templates to be extended by my build scripts. You probably shouldn't use this.

webpack.config.js example

const extendDefaultTypeScriptConfiguration = require("webpack-configuration-templates")
    .extendDefaultTypeScriptConfiguration;


module.exports = [
    
    /* Main application for execution by browser
     */
    extendDefaultTypeScriptConfiguration({
        entry: "./src/main.ts",
        
        output: {
            path: __dirname + "/target",
            filename: "main.js"
        },
        
        target: 'web'
    }),
    
    /* Test case for execution by node.js
     */
    extendDefaultTypeScriptConfiguration({
        entry: "./src/test.ts",

        output: {
            path: __dirname + "/target",
            filename: "test.js"
        },

        target: 'node'
    })
];

Changelog

  • 0.1.2

    • Unfortunately v0.1.0 was published after v0.1.1, resulting in npmjs displaying the wrong version as latest
  • 0.1.1

  • 0.1.0

    • Initial development

Package Sidebar

Install

npm i webpack-configuration-templates

Weekly Downloads

4

Version

0.1.2

License

Zlib

Last publish

Collaborators

  • ooxi