Webpack
- 1 ответ
- 0 вопросов
1
Вклад в тег
//webpack.config.js
const resolve = require('path').resolve;
module.exports = {
//...
module: {
rules: [{
test: /\.configuration\.js$/,
loader: 'file-replace-loader',
options: {
condition: process.env.NODE_ENV === 'development',
replacement: resolve('./configuration.dev.js'),
async: true,
}
}]
}
}