const webpack = require('webpack');

module.exports = {
	productionSourceMap: false,
	configureWebpack: {
		output: {
			libraryExport: 'default',
		},
		stats: {
			warnings: false,
		},
		plugins: [
			new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /(en|es)$/),
		]
	},
	css: {
		extract: process.env.CSS_EXTRACT == 'true' || false,
	},
	assetsDir: '../',
}