Closed sivadass closed 6 years ago
create a new file webpack.config.js
const webpack = require('atool-build/lib/webpack');
module.exports = function(webpackConfig) {
// do whatever you want
return webpackConfig;
}
Thanks for your guidance, but still i couldn't generate source map.
Below is my webpack.config.js
:
// Learn more on how to config.
// - https://github.com/ant-tool/atool-build#配置扩展
const webpack = require('atool-build/lib/webpack');
module.exports = function(webpackConfig) {
devtool: 'eval-source-map';
webpackConfig.babel.plugins.push('transform-runtime');
webpackConfig.babel.plugins.push(['import', {
libraryName: 'antd',
style: 'css',
}]);
return webpackConfig;
};
Can you please correct me, what i am doing wrong?
webpackConfig.devtool = 'sourcemap'
Thank you so much @pigcan
I want to analyse the webpack bundle, what is the preferred way to configure atool-build tool ? I am happy to use any of the following webpack analysers:
Please guide me...