Skip to content

Commit

Permalink
remove old prod build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakeii committed Jan 13, 2025
1 parent 3c44d03 commit 3ac9ccf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 61 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
"main": "dist/cjs/core/index.js",
"module": "dist/esm/core/index.js",
"scripts": {
"build": "npm-run-all clean --parallel compile:core:* build:prod build:dev build:riff-raff",
"build": "npm-run-all clean --parallel compile:core:* build:prod build:dev",
"build:dev": "webpack -c webpack.config.dev.mjs",
"build:prod": "webpack -c webpack.config.prod.mjs",
"build:riff-raff": "webpack -c webpack.config.riff-raff.mjs",
"clean": "rm -rf dist",
"compile:core:common": "tsc --project ./tsconfig.core.json --outDir ./dist/cjs --module CommonJS",
"compile:core:esm": "tsc --project ./tsconfig.core.json --outDir ./dist/esm",
Expand Down
13 changes: 9 additions & 4 deletions webpack.config.prod.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import TerserPlugin from 'terser-webpack-plugin';
import webpack from 'webpack';
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
import { merge } from 'webpack-merge';
import { PROutPlugin } from './webpack/prout-plugin.mjs';
import { UpdateParameterStorePlugin } from './webpack/update-parameter-store-plugin.mjs';
import config from './webpack.config.mjs';

const { DefinePlugin } = webpack;
Expand All @@ -23,9 +25,10 @@ const prefix = process.env.BUNDLE_PREFIX ?? '[chunkhash]/';
export default merge(config, {
mode: 'production',
output: {
filename: `${prefix}graun.standalone.commercial.js`,
chunkFilename: `${prefix}graun.[name].commercial.js`,
path: join(import.meta.dirname, 'dist', 'bundle', 'prod'),
filename: `commercial/${prefix}graun.standalone.commercial.js`,
chunkFilename: `commercial/${prefix}graun.[name].commercial.js`,
path: join(import.meta.dirname, 'dist', 'riff-raff', 'js'),
publicPath: 'auto',
clean: true,
},
devtool: 'source-map',
Expand All @@ -39,9 +42,11 @@ export default merge(config, {
new DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production'),
'process.env.OVERRIDE_BUNDLE_PATH': JSON.stringify(false),
'process.env.RIFFRAFF_DEPLOY': JSON.stringify(false),
'process.env.RIFFRAFF_DEPLOY': JSON.stringify(true),
...gitCommitSHA(),
}),
new UpdateParameterStorePlugin(),
new PROutPlugin(),
],
optimization: {
minimize: true,
Expand Down
55 changes: 0 additions & 55 deletions webpack.config.riff-raff.mjs

This file was deleted.

0 comments on commit 3ac9ccf

Please sign in to comment.