Sha256: 134aca73da333de78928e1e15b192b9ff73672fa0a26bde39350cad4c0701f40

Contents?: true

Size: 1.9 KB

Versions: 18

Compression:

Stored size: 1.9 KB

Contents

const path = require('path');
const webpack = require("webpack");
const ExtractTextPlugin = require("extract-text-webpack-plugin");

module.exports = {
  entry: [
    './assets/javascripts/pack.js',
    './assets/stylesheets/style.scss',
  ],
  output: {
    path: path.join(__dirname, 'public', 'assets'),
    filename: 'pack.js',
    publicPath: '/assets',
  },
  plugins: [new webpack.ProvidePlugin({ $: "jquery", jQuery: "jquery" })],
  module: {
    loaders: [
    {
      test: /\.(js|jsx)$/,
      include: path.join(__dirname, '/app'),
      exclude: path.join(__dirname, '/node_modules'),
      loader: 'babel-loader',
      query: {
        presets: ['es2015', 'react'],
        plugins: ["transform-object-rest-spread"]
      }
    },
    {
        test: /\.(html|mustache)$/,
        loader: 'mustache'
        // loader: 'mustache?minify'
        // loader: 'mustache?{ minify: { removeComments: false } }'
        // loader: 'mustache?noShortcut'
    },
    {
      test: /\.(eot|svg|ttf|woff(2)?)(\?v=\d+\.\d+\.\d+)?/,
      loader: 'url',
    },
    {
      test: /\.coffee$/,
      loader: "coffee-loader"
    },
    {
      test: /\.(coffee\.md|litcoffee)$/,
      loader: "coffee-loader?literate"
    },
    {
      test: /\.(css|scss|sass)$/,
      loader: ExtractTextPlugin.extract('css!sass?indentedSyntax=true&sourceMap=true')
    }]
  },
  resolve: {
    root: path.resolve('./assets'),
    // tell webpack which extensions to auto search when it resolves modules. With this,
    // you'll be able to do `require('./utils')` instead of `require('./utils.js')`
    extensions: ['', '.js'],
    // by default, webpack will search in `web_modules` and `node_modules`. Because we're using
    // Bower, we want it to look in there too
    // modulesDirectories: [ 'node_modules' ],
  },
  sassLoader: {
    includePaths: [path.resolve(__dirname, "./node_modules")]
  },
  plugins: [
    new ExtractTextPlugin('style.css')
  ]
};

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
mvpkit-0.8.1 project/webpack.config.js
mvpkit-0.8.0 project/webpack.config.js
minimum_viable_product-0.7.15 project/webpack.config.js
minimum_viable_product-0.7.14 project/webpack.config.js
minimum_viable_product-0.7.13 project/webpack.config.js
minimum_viable_product-0.7.12 project/webpack.config.js
minimum_viable_product-0.7.11 project/webpack.config.js
minimum_viable_product-0.7.10 project/webpack.config.js
minimum_viable_product-0.7.9 project/webpack.config.js
minimum_viable_product-0.7.8 project/webpack.config.js
minimum_viable_product-0.7.7 project/webpack.config.js
minimum_viable_product-0.7.6 project/webpack.config.js
minimum_viable_product-0.7.5 project/webpack.config.js
minimum_viable_product-0.7.4 project/webpack.config.js
minimum_viable_product-0.7.3 project/webpack.config.js
minimum_viable_product-0.7.2 project/webpack.config.js
minimum_viable_product-0.7.1 project/webpack.config.js
minimum_viable_product-0.7.0 project/webpack.config.js