UNPKG

bootstrap-css

Version:

A css module compatible version of bootstrap

23 lines (21 loc) 665 B
var path = require('path'); var webpack = require('webpack'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { devtool: 'source-map', entry: ['./src/index'], output: { filename: 'bundle.js', path: path.join(__dirname, 'public'), publicPath: '/public/' }, module: { loaders: [ { test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ }, { test: /\.css$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]') } ] }, plugins: [ new ExtractTextPlugin('style.css', { allChunks: true }) ] };