1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/svg-sprite-loader/examples/base-webpack.config.js

32 lines
536 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
const path = require('path');
const packageName = require('../package.json').name;
const { getWebpackVersion } = require('../lib/utils');
const webpackVersion = getWebpackVersion();
const config = {
output: {
filename: '[name].js'
},
devtool: false,
resolve: {
alias: {
[packageName]: path.resolve(__dirname, '..')
}
},
resolveLoader: {
alias: {
[packageName]: path.resolve(__dirname, '..')
}
}
};
if (webpackVersion >= 4) {
config.mode = 'development';
}
module.exports = config;