antares/webpack.config.js

28 lines
560 B
JavaScript
Raw Normal View History

2020-05-30 19:07:34 +02:00
const webpack = require('webpack');
2020-05-07 17:45:04 +02:00
module.exports = {
2020-05-30 19:07:34 +02:00
plugins: [
new webpack.DefinePlugin({
'process.env': {
PACKAGE_VERSION: JSON.stringify(require('./package.json').version)
}
})
],
2020-05-08 18:02:18 +02:00
module: {
rules: [
{
test: /\.scss$/,
use: [
{
loader: 'sass-loader',
options: {
2020-07-05 16:06:56 +02:00
additionalData: '@import "@/scss/_variables.scss";'
2020-05-08 18:02:18 +02:00
}
}
]
}
]
}
2020-05-07 17:45:04 +02:00
};