Skip to content

Instantly share code, notes, and snippets.

@asselstine
Last active February 6, 2018 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asselstine/b8132f1c8ffedded727f6549656cb500 to your computer and use it in GitHub Desktop.
Save asselstine/b8132f1c8ffedded727f6549656cb500 to your computer and use it in GitHub Desktop.
Truffle configuration example that shows how to import ES6 style modules.
require('babel-register') // should already exist in Truffle webpack box
require('babel-polyfill') // added to appease zeppelin-solidity
require('babel-node-modules')([ // added so that we can include zeppelin-solidity test JS
'zeppelin-solidity' // module that has ES6 style files I wish to include
])
module.exports = {
networks: {
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*' // Match any network id
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment