2020-05-30 19:07:34 +02:00
|
|
|
const webpack = require('webpack');
|
2020-08-20 18:06:02 +02:00
|
|
|
const MonacoEditorPlugin = require('monaco-editor-webpack-plugin');
|
2020-05-30 19:07:34 +02:00
|
|
|
|
2020-05-07 17:45:04 +02:00
|
|
|
module.exports = {
|
2020-10-03 12:12:41 +02:00
|
|
|
stats: 'errors-warnings',
|
2020-05-30 19:07:34 +02:00
|
|
|
plugins: [
|
2020-08-20 18:06:02 +02:00
|
|
|
new MonacoEditorPlugin({
|
|
|
|
languages: ['sql']
|
|
|
|
}),
|
2020-05-30 19:07:34 +02:00
|
|
|
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
|
|
|
};
|