lowcode-engine/packages/demo/build.plugin.js
mario.gk 114a279b59 Merge commit 'cd12677138a223eaf2b1579d27d3bf0addc1565e' into release/0.9.35
# Conflicts:
#	packages/editor-preset-vision/package.json
#	packages/rax-simulator-renderer/package.json
#	packages/react-renderer/package.json
2020-11-17 20:08:03 +08:00

17 lines
460 B
JavaScript

const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
module.exports = ({ context, onGetWebpackConfig }) => {
onGetWebpackConfig((config) => {
config.resolve.plugin('tsconfigpaths').use(TsconfigPathsPlugin, [
{
configFile: './tsconfig.json',
},
]);
config.plugins.delete('hot');
config.devServer.hot(false);
if (context.command === 'start') {
config.devtool('inline-source-map');
}
});
};