@riosst100/pwa-marketplace 1.9.9 → 2.0.1

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@riosst100/pwa-marketplace",
3
3
  "author": "riosst100@gmail.com",
4
- "version": "1.9.9",
4
+ "version": "2.0.1",
5
5
  "main": "src/index.js",
6
6
  "pwa-studio": {
7
7
  "targets": {
package/src/intercept.js CHANGED
@@ -3,6 +3,7 @@ const moduleOverridePlugin = require('./moduleOverrideWebpackPlugin');
3
3
  const { DefinePlugin } = require('webpack');
4
4
  const { getAvailableWebsitesConfigData } = require('./Utilities/graphQL');
5
5
  const LocalizationPlugin = require('@magento/pwa-buildpack/lib/WebpackTools/plugins/LocalizationPlugin');
6
+ const CopyPlugin = require("copy-webpack-plugin");
6
7
 
7
8
  module.exports = targets => {
8
9
  // Perform the asynchronous operation outside the tap
@@ -159,6 +160,12 @@ module.exports = targets => {
159
160
  }).apply(compiler);
160
161
  });
161
162
 
163
+ targets.of('@magento/pwa-buildpack').webpackCompiler.tap(compiler => {
164
+ new CopyPlugin({
165
+ patterns: [{ from: 'node_modules/@riosst100/pwa-marketplace/src/static-files', to: 'static-files' }]
166
+ }).apply(compiler);
167
+ });
168
+
162
169
  // Handle the routes directly within the routes tap
163
170
  targets.of("@magento/venia-ui").routes.tap(routesArray => {
164
171
  routesArray.push(...routes);
Binary file