feat: assets move + comments migration + admin users UI
This commit is contained in:
@@ -9,7 +9,6 @@ const CopyWebpackPlugin = require('copy-webpack-plugin')
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||
const HtmlWebpackPugPlugin = require('html-webpack-pug-plugin')
|
||||
const MomentTimezoneDataPlugin = require('moment-timezone-data-webpack-plugin')
|
||||
const SriWebpackPlugin = require('webpack-subresource-integrity')
|
||||
const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin')
|
||||
const WriteFilePlugin = require('write-file-webpack-plugin')
|
||||
const WebpackBarPlugin = require('webpackbar')
|
||||
@@ -31,7 +30,7 @@ module.exports = {
|
||||
},
|
||||
output: {
|
||||
path: path.join(process.cwd(), 'assets'),
|
||||
publicPath: '/',
|
||||
publicPath: '/_assets/',
|
||||
filename: 'js/[name].js',
|
||||
chunkFilename: 'js/[name].js',
|
||||
globalObject: 'this',
|
||||
@@ -210,10 +209,6 @@ module.exports = {
|
||||
excludeChunks: ['app', 'legacy']
|
||||
}),
|
||||
new HtmlWebpackPugPlugin(),
|
||||
new SriWebpackPlugin({
|
||||
hashFuncNames: ['sha256', 'sha512'],
|
||||
enabled: false
|
||||
}),
|
||||
new WebpackBarPlugin({
|
||||
name: 'Client Assets'
|
||||
}),
|
||||
|
@@ -15,7 +15,8 @@ const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin')
|
||||
const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin')
|
||||
const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin')
|
||||
const WebpackBarPlugin = require('webpackbar')
|
||||
// const SriWebpackPlugin = require('webpack-subresource-integrity')
|
||||
|
||||
const now = Math.round(Date.now() / 1000)
|
||||
|
||||
const babelConfig = fs.readJsonSync(path.join(process.cwd(), '.babelrc'))
|
||||
const cacheDir = '.webpack-cache/cache'
|
||||
@@ -34,9 +35,9 @@ module.exports = {
|
||||
},
|
||||
output: {
|
||||
path: path.join(process.cwd(), 'assets'),
|
||||
publicPath: '/',
|
||||
filename: 'js/[name].[hash].js',
|
||||
chunkFilename: 'js/[name].[chunkhash].js',
|
||||
publicPath: '/_assets/',
|
||||
filename: `js/[name].js?${now}`,
|
||||
chunkFilename: `js/[name].js?${now}`,
|
||||
globalObject: 'this',
|
||||
crossOriginLoading: 'use-credentials'
|
||||
},
|
||||
@@ -223,10 +224,6 @@ module.exports = {
|
||||
sync: 'runtime.js',
|
||||
defaultAttribute: 'async'
|
||||
}),
|
||||
// new SriWebpackPlugin({
|
||||
// hashFuncNames: ['sha256', 'sha512'],
|
||||
// enabled: true
|
||||
// }),
|
||||
new WebpackBarPlugin({
|
||||
name: 'Client Assets'
|
||||
}),
|
||||
@@ -238,6 +235,9 @@ module.exports = {
|
||||
new webpack.DefinePlugin({
|
||||
'process.env.NODE_ENV': JSON.stringify('production'),
|
||||
'process.env.CURRENT_THEME': JSON.stringify(_.defaultTo(yargs.theme, 'default'))
|
||||
}),
|
||||
new webpack.optimize.MinChunkSizePlugin({
|
||||
minChunkSize: 50000
|
||||
})
|
||||
],
|
||||
optimization: {
|
||||
|
Reference in New Issue
Block a user