mirror of
https://github.com/yldio/copilot.git
synced 2024-11-11 05:40:11 +02:00
37 lines
774 B
JavaScript
37 lines
774 B
JavaScript
|
const config = require('./config');
|
||
|
const webpack = require('webpack');
|
||
|
const path = require('path');
|
||
|
|
||
|
module.exports = {
|
||
|
output: {
|
||
|
libraryTarget: 'commonjs2',
|
||
|
},
|
||
|
plugins: [
|
||
|
config.__plugins['no-errors-plugin'],
|
||
|
config.__plugins['loader-options-plugin'],
|
||
|
config.__plugins['define-plugin']
|
||
|
],
|
||
|
module: {
|
||
|
loaders: [{
|
||
|
test: /\.css?$/,
|
||
|
loader: [
|
||
|
'style-loader', {
|
||
|
loader: 'css-loader',
|
||
|
options: {
|
||
|
modules: true,
|
||
|
importLoaders: 1
|
||
|
}
|
||
|
}, {
|
||
|
loader: 'postcss-loader',
|
||
|
options: {
|
||
|
plugins: function() {
|
||
|
return [
|
||
|
require('postcss-cssnext')
|
||
|
];
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}]
|
||
|
}
|
||
|
};
|