Advertisement
Guest User

Untitled

a guest
Jan 14th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var ExtractTextPlugin = require("extract-text-webpack-plugin");
  2.  
  3. /* eslint-disable */
  4.  
  5. module.exports = {
  6.   entry: "./app",
  7.   output: {
  8.     path: "./priv/static",
  9.     filename: "js/bundle.js"
  10.   },
  11.   module: {
  12.     loaders: [{
  13.       test: /\.js$/,
  14.       exclude: /node_modules/,
  15.       loader: "babel",
  16.       query: {
  17.         presets: ["react", "es2015"]
  18.       }
  19.     },
  20.     {
  21.       test: /\.css$/,
  22.       loader: ExtractTextPlugin.extract("css")
  23.     }]
  24.   },
  25.   plugins: [
  26.     new ExtractTextPlugin("css/app.css")
  27.   ]
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement