UNPKG

hiromi

Version:

React components for Bulma. http://bulma.io/

40 lines (37 loc) 817 B
// Used for running docs var webpack = require("webpack"); var path = require("path"); var ExtractTextPlugin = require("extract-text-webpack-plugin"); module.exports = { entry: { app: "./docs/index.jsx" }, output: { path: path.resolve(__dirname, "docs/build"), publicPath: "/assets/", filename: "bundle.js" }, devtool: 'source-map', module: { loaders: [ { test: /\.jsx?$/, loader: 'babel', include: [ path.resolve(__dirname, 'docs'), path.resolve(__dirname, 'components') ] }, { test: /\.css$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader'), } ] }, resolve: { extensions: ['', '.js', '.jsx'] }, plugins: [ new ExtractTextPlugin("[name].css") ] };