Keyethereum fs dependency (#5902)

* Set process.browser

* Empty fs module (keyethereum dep)

* !==
This commit is contained in:
Jaco Greeff 2017-06-22 11:49:44 +02:00 committed by GitHub
parent d152fa3e85
commit a60c5527c7
4 changed files with 15 additions and 1 deletions

View File

@ -14,4 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
if (process.env.NODE_ENV !== 'test') {
process.browser = true;
}
export LocalAccountsMiddleware from './localAccountsMiddleware';

View File

@ -148,6 +148,10 @@ module.exports = {
unsafeCache: true
},
node: {
fs: 'empty'
},
plugins: (function () {
const DappsHTMLInjection = DAPPS.filter((dapp) => !dapp.skipBuild).map((dapp) => {
return new HtmlWebpackPlugin({

View File

@ -46,6 +46,10 @@ module.exports = {
}
},
node: {
fs: 'empty'
},
module: {
rules: [
{

View File

@ -70,7 +70,9 @@ module.exports = {
}
]
},
node: {
fs: 'empty'
},
resolve: {
alias: {
'~': path.resolve(__dirname, '../src'),