Socket
Book a DemoInstallSign in
Socket

underdog-collie2

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

underdog-collie2

CLI tool for compiling production-ready universal JavaScript applications, powered by webpack.

latest
Source
npmnpm
Version
0.3.1
Version published
Maintainers
1
Created
Source

Collie

CLI tool for compiling production-ready universal JavaScript applications, powered by webpack.

Installation

npm install underdog-collie

Usage

Create a .babelrc file in the root of your project to configure Babel:

{
  "presets": [
    ["env", {
      "targets": {
        "browsers": ["last 2 versions"],
        "node": "current"
      }
    }],
    "react"
  ]
}

Also create a file named collie.config.js in the root of your project:

// Example collie config
const {join} = require('path');

module.exports = {
  // Specify an array of files to build with webpack.
  build: [{
    // Specify target.
    target: 'browser',

    // Specify entry options to pass to webpack.
    entry: {
      app: join(__dirname, 'browser.js')
    },

    // Specify output
    output: {
      path: join(__dirname, 'dist/static'),
      publicPath: '/static/'
    },

    // Pass options for html-webpack-plugin. Setting html to an array of objects
    // will create a new instance of the html-webpack-plugin with each object.
    html: {
      template: join(__dirname, 'index.html'),
      filename: join(__dirname, 'dist/index.html'),
      inject: true
    }
  }, {
    // Create a JavaScript bundle for server side use.
    target: 'server',
    entry: {
      server: join(__dirname, 'server')
    },
    output: {
      path: join(__dirname, 'dist')
    }
  }]
};

Create a build:

collie build

or watch files for development:

collie build --watch

FAQs

Package last updated on 17 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.