Skip to content

mrdziuban/gopherjs-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GopherJS Webpack loader

npm

Usage

This is a simple Webpack loader that shells out to gopherjs.

To use it, first install the package:

$ npm install --save gopherjs-loader

then configure the loader in your Webpack config:

module.exports = {
  // ...
  module: {
    rules: [
      { test: /\.go$/, loader: 'gopherjs-loader' },
      // ...
    ]
  }
}

Make sure you have the gopherjs binary somewhere in your PATH.

Example

Check out the example directory for a simple Hello World example.