hypery2k/nativescript-fabric

View on GitHub
publish/scripts/webpack.config.js

Summary

Maintainability
A
0 mins
Test Coverage
var path = require("path");
var webpack = require("webpack");

module.exports = {
    target: "node",
    output: {
        //some debug info around module imports
        pathinfo: true
    },
    resolve: {
        modules: [
            path.join(__dirname, "..", "node_modules"),
        ],
        alias: {
            //winston is inherently unpackable. replace with our mock
            "winston": path.join(__dirname, "winston-mock.js")
        }
    },
    externals: {
        //pkginfo is unpackable too, but we can replace it with a simple expression
        "pkginfo": "function(){}"
    }
};