JSFiddle - React, Tailwind, and code Playground
by Andrei Gheorghiu
JavaScript
const CopyPlugin = require('copy-webpack-plugin');
module.exports = {
configureWebpack: {
output: {
libraryExport: 'default'
},
plugins: [
new CopyPlugin([{
from: 'deploy',
to: '/',
force: true,
copyUnmodified: true
}])
]
},
chainWebpack: config => {
config
.plugin('html')
.tap(args => {
console.log(args);
return args;
});
},
assetsDir: 'assets',
outputDir: 'dist/Recommender',
crossorigin: 'anonymous',
css: {
sourceMap: true
}
};