github.com/jbendotnet/noms@v0.0.0-20190904222105-c43e4293ea92/cmd/noms/splore/webpack.config.js (about) 1 // Copyright 2016 Attic Labs, Inc. All rights reserved. 2 // Licensed under the Apache License, version 2.0: 3 // http://www.apache.org/licenses/LICENSE-2.0 4 5 'use strict'; 6 7 const webpack = require('webpack'); 8 9 const devMode = process.env.NODE_ENV !== 'production'; 10 11 module.exports = { 12 module: { 13 loaders: [{ 14 test: /\.js$/, 15 loader: 'babel-loader', 16 exclude: /node_modules/, 17 }], 18 }, 19 devtool: devMode ? '#inline-source-map' : '', 20 };