Wrote news publisher panel

This commit is contained in:
2021-02-03 10:01:26 +11:00
parent 13b83953c3
commit 9d8c1fa038
4 changed files with 74 additions and 4 deletions
+8 -1
View File
@@ -1,4 +1,5 @@
//plugins
const { DefinePlugin } = require('webpack');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
@@ -39,11 +40,17 @@ module.exports = ({ production, analyzer }) => {
]
},
plugins: [
new DefinePlugin({
'process.env': {
'NEWS_URI': '"http://dev-news.eggtrainer.com:3100/news"',
'NEWS_KEY': '"key"',
}
}),
new CleanWebpackPlugin({
cleanOnceBeforeBuildPatterns: ['*', '!content*']
}),
new HtmlWebpackPlugin({
template: "./client/template.html",
template: './client/template.html',
minify: {
collapseWhitespace: production,
removeComments: production,