Skip to content

Commit

Permalink
Final touches to the build scripts. (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
azaslonov authored May 21, 2020
1 parent 7cd53eb commit 5d29c7d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions webpack.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const publisherConfig = require("./webpack.publisher.js");


const productionConfig = {
mode: "production",
optimization: {
minimizer: [
new TerserPlugin({
Expand Down
2 changes: 1 addition & 1 deletion webpack.designer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const runtimeConfig = require("./webpack.runtime.js");


const designerConfig = {
mode: "production",
mode: "none",
target: "web",
entry: {
"editors/scripts/paperbits": ["./src/startup.design.ts"],
Expand Down
7 changes: 5 additions & 2 deletions webpack.publisher.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ const CopyWebpackPlugin = require("copy-webpack-plugin");
const CleanWebpackPlugin = require("clean-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const runtimeConfig = require("./webpack.runtime");


const publisherConfig = {
mode: "development",
mode: "none",
target: "node",
node: {
__dirname: false,
Expand All @@ -15,6 +15,9 @@ const publisherConfig = {
entry: {
"index": ["./src/startup.publish.ts"]
},
optimization: {
minimize: false
},
output: {
filename: "./[name].js",
path: path.resolve(__dirname, "dist/publisher"),
Expand Down
2 changes: 1 addition & 1 deletion webpack.runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const CopyWebpackPlugin = require("copy-webpack-plugin");


const runtimeConfig = {
mode: "production",
mode: "none",
target: "web",
entry: {
"scripts/theme": ["./src/startup.runtime.ts"]
Expand Down

0 comments on commit 5d29c7d

Please sign in to comment.