mojibaka
Version:
✨ Browser emoji support detection toolkit
29 lines (27 loc) • 662 B
JavaScript
const webpack = require('webpack');
const ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
entry: [
'babel-polyfill',
'./app/index.js'
],
output: {
path: "docs",
filename: "bundle.js"
},
devServer: {
inline: true,
contentBase: "./docs",
host: "0.0.0.0"
},
module: {
loaders: [
{ test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ },
{ test: /\.css$/, loader: ExtractTextPlugin.extract('css-loader'), exclude: /node_modules/ }
]
},
plugins: [
new webpack.optimize.UglifyJsPlugin(),
new ExtractTextPlugin("bundle.css", { allChunks: true })
]
};