forked from mjrussell/draft-js-autocomplete-plugin-creator
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
24 lines (23 loc) · 759 Bytes
/
webpack.config.js
File metadata and controls
24 lines (23 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* eslint-disable no-var */
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var autoprefixer = require('autoprefixer');
module.exports = {
output: {
publicPath: '/',
libraryTarget: 'commonjs2', // necessary for the babel plugin
path: path.join(__dirname, 'lib-css'), // where to place webpack files
},
module: {
loaders: [
{
test: /\.css$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=draftJsMentionPlugin__[local]__[hash:base64:5]!postcss-loader'),
},
],
},
postcss: [autoprefixer({ browsers: ['> 1%'] })],
plugins: [
new ExtractTextPlugin(`${path.parse(process.argv[2]).name}.css`),
],
};