mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-26 07:55:14 +00:00
parent
522ce67498
commit
532821d503
1 changed files with 2 additions and 4 deletions
|
@ -5,7 +5,6 @@
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import * as webpack from 'webpack';
|
import * as webpack from 'webpack';
|
||||||
import chalk from 'chalk';
|
import chalk from 'chalk';
|
||||||
import rndstr from 'rndstr';
|
|
||||||
const { VueLoaderPlugin } = require('vue-loader');
|
const { VueLoaderPlugin } = require('vue-loader');
|
||||||
const WebpackOnBuildPlugin = require('on-build-webpack');
|
const WebpackOnBuildPlugin = require('on-build-webpack');
|
||||||
//const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
|
//const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
|
||||||
|
@ -18,7 +17,6 @@ const constants = require('./src/const.json');
|
||||||
|
|
||||||
const locales = require('./locales');
|
const locales = require('./locales');
|
||||||
const meta = require('./package.json');
|
const meta = require('./package.json');
|
||||||
const version = isProduction ? meta.version : meta.version + '-' + rndstr({ length: 8, chars: '0-9a-z' });
|
|
||||||
const codename = meta.codename;
|
const codename = meta.codename;
|
||||||
|
|
||||||
const postcss = {
|
const postcss = {
|
||||||
|
@ -125,7 +123,7 @@ module.exports = {
|
||||||
}),
|
}),
|
||||||
new WebpackOnBuildPlugin((stats: any) => {
|
new WebpackOnBuildPlugin((stats: any) => {
|
||||||
fs.writeFileSync('./built/client/meta.json', JSON.stringify({
|
fs.writeFileSync('./built/client/meta.json', JSON.stringify({
|
||||||
version
|
version: meta.version
|
||||||
}), 'utf-8');
|
}), 'utf-8');
|
||||||
}),
|
}),
|
||||||
new VueLoaderPlugin(),
|
new VueLoaderPlugin(),
|
||||||
|
@ -133,7 +131,7 @@ module.exports = {
|
||||||
],
|
],
|
||||||
output: {
|
output: {
|
||||||
path: __dirname + '/built/client/assets',
|
path: __dirname + '/built/client/assets',
|
||||||
filename: `[name].${version}.js`,
|
filename: `[name].${meta.version}.js`,
|
||||||
publicPath: `/assets/`
|
publicPath: `/assets/`
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|
Loading…
Reference in a new issue