@riosst100/pwa-marketplace 1.9.9 → 2.0.0
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 +1 -1
- package/src/intercept.js +7 -0
package/package.json
CHANGED
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);
|