Skip to content

Instantly share code, notes, and snippets.

@ngohungphuc
Created March 26, 2019 13:08
Show Gist options
  • Select an option

  • Save ngohungphuc/7021de20ad81c5052f9f6efa27678b2e to your computer and use it in GitHub Desktop.

Select an option

Save ngohungphuc/7021de20ad81c5052f9f6efa27678b2e to your computer and use it in GitHub Desktop.
const merge = require('webpack-merge');
const baseConfig = require('./webpack.config.js');
const webpack = require("webpack");
module.exports = merge(baseConfig, {
plugins: [
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('development'),
'BASE_URL': JSON.stringify('http://localhost:5000/')
}
})
],
watch: true
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment