brick-engine-cli 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -52,13 +52,9 @@ export default (env = {}, argv) => {
|
|
|
52
52
|
},
|
|
53
53
|
externals: {
|
|
54
54
|
p5: 'p5',
|
|
55
|
+
'brick-engine-js': 'BrickEngine',
|
|
55
56
|
},
|
|
56
57
|
plugins: [
|
|
57
|
-
new webpack.DefinePlugin({
|
|
58
|
-
'process.env.APP_MODE': JSON.stringify('client'),
|
|
59
|
-
'process.env.SUPABASE_URL': JSON.stringify(process.env.SUPABASE_URL || ''),
|
|
60
|
-
'process.env.SUPABASE_ANON_KEY': JSON.stringify(process.env.SUPABASE_ANON_KEY || ''),
|
|
61
|
-
}),
|
|
62
58
|
new MiniCssExtractPlugin({
|
|
63
59
|
filename: 'style.css',
|
|
64
60
|
}),
|
|
@@ -72,6 +68,8 @@ export default (env = {}, argv) => {
|
|
|
72
68
|
};
|
|
73
69
|
|
|
74
70
|
if (bundleMode === 'standalone') {
|
|
71
|
+
delete config.externals['brick-engine-js'];
|
|
72
|
+
|
|
75
73
|
// Plugins only for standalone mode
|
|
76
74
|
config.plugins.push(
|
|
77
75
|
new HtmlWebpackPlugin({
|