Last active
February 6, 2018 22:50
-
-
Save asselstine/b8132f1c8ffedded727f6549656cb500 to your computer and use it in GitHub Desktop.
Truffle configuration example that shows how to import ES6 style modules.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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