Sha256: c7a5a1c950ec9ca8527f21beabe5eac8642de557164e6b85ab101b30bfaccbbf

Contents?: true

Size: 1.3 KB

Versions: 3

Compression:

Stored size: 1.3 KB

Contents

/**
 * @see http://webpack.github.io/docs/configuration.html
 * for webpack configuration options
 */
var webpack = require("webpack");

module.exports = {
  context: __dirname,

  entry: {
    toolkit: "./src/index.cjsx"
  },

  output: {
    path: __dirname + "/../dist",
    filename: "[name].js",
    library: ["Architects","[name]"],
    libraryTarget: "umd",
  },

  resolve: {
    extensions: ["",".js",".coffee",".cjsx",".scss",".html"],
    modulesDirectories: [
      'node_modules', 
      'bower_components'
    ],
  },

  plugins: [
    new webpack.ProvidePlugin({
      "_": "underscore",
      "Backbone": "backbone"
    }) 
  ],

  externals:{
    "jquery": "var jQuery",
    "$"     : "var jQuery"
  },

  // The 'module' and 'loaders' options tell webpack to use loaders.
  // @see http://webpack.github.io/docs/using-loaders.html
  module: {
    loaders: [
      { test: /\.coffee$/, loaders: ["coffee-loader"] },
      { test: /\.cjsx$/, loaders: ["coffee-loader","cjsx-loader"] },
      { test: /\.scss$/, loader: "style!css!sass?outputStyle=expanded"},
      { test: /\.css$/, loader: "style!css!sass?outputStyle=expanded"},
      {test: /\.(jpg|png|gif|svg)/, loader: 'file-loader?path=smooth-developer-tools'},
      {test: /\.(eot|ttf|woff)/, loader: 'file-loader?path=smooth-developer-tools'}
    ]
  }
};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stylish-0.3.1 support/editor-app/development/webpack.config.js
stylish-0.3.0 support/editor-app/development/webpack.config.js
stylish-0.0.2 support/editor-app/development/webpack.config.js