Skip to content

Instantly share code, notes, and snippets.

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

  • Save ngohungphuc/7d37c881919d561b59270abd1b93d836 to your computer and use it in GitHub Desktop.

Select an option

Save ngohungphuc/7d37c881919d561b59270abd1b93d836 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('production'),
'BASE_URL': JSON.stringify('https://awesomecmscore.azurewebsites.net/')
}
})
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment