Skip to content

Commit

Permalink
fix path for multi theming
Browse files Browse the repository at this point in the history
  • Loading branch information
diegopf committed Sep 20, 2023
1 parent 0eb501c commit 5f09acd
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions build/instrumentation.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import visualizer from 'rollup-plugin-visualizer';
import vue from 'rollup-plugin-vue';
import * as fs from 'fs';

const jsOutputDirectory = path.join(process.cwd(), 'dist');

/**
* Creates a rollup configuration for projects that use X-Components. This configuration can be customized with the options object.
*
Expand Down Expand Up @@ -49,26 +47,28 @@ export function createConfig({
};
}

const mergedOutput = {
dir: path.join(process.cwd(), 'dist'),
format: 'es',
sourcemap: true,
assetFileNames: '[name][extname]',
entryFileNames: 'app.js',
...output
};

return {
input,
output: {
dir: jsOutputDirectory,
format: 'es',
sourcemap: true,
assetFileNames: '[name][extname]',
entryFileNames: 'app.js',
...output
},
output: mergedOutput,
preserveEntrySignatures: false,
plugins: [
...prePlugins,
del(
mergeConfig('del', {
targets: [`${jsOutputDirectory}/*`]
targets: [`${mergedOutput.dir}/*`]
})
),
copy({
targets: [{ src: ['public/**', '!public/index.html'], dest: `${jsOutputDirectory}` }]
targets: [{ src: ['public/**', '!public/index.html'], dest: `${mergedOutput.dir}` }]
}),
// Resolving plugins
replace(
Expand Down

0 comments on commit 5f09acd

Please sign in to comment.