1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-11 05:40:11 +02:00
copilot/frontend/webpack/test.js

37 lines
774 B
JavaScript
Raw Normal View History

2016-10-24 14:23:05 +03:00
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')
];
}
}
}
]
}]
}
};