Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ExtractTextPlugin = require("extract-text-webpack-plugin");
- /* eslint-disable */
- module.exports = {
- entry: "./app",
- output: {
- path: "./priv/static",
- filename: "js/bundle.js"
- },
- module: {
- loaders: [{
- test: /\.js$/,
- exclude: /node_modules/,
- loader: "babel",
- query: {
- presets: ["react", "es2015"]
- }
- },
- {
- test: /\.css$/,
- loader: ExtractTextPlugin.extract("css")
- }]
- },
- plugins: [
- new ExtractTextPlugin("css/app.css")
- ]
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement