summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorFrancesco <firefelix@gmail.com>2015-06-09 16:53:04 +0200
committerFrancesco <firefelix@gmail.com>2015-06-09 16:53:04 +0200
commita54e39b4db5f845841f1258b7398f24d0b1b8117 (patch)
treea44b31c9e9aa728afa777e142b2e20fb966e480a /webpack.config.js
parent472048d2afd6ede93715cd20fe20156ba6e679f0 (diff)
downloadreact-autosize-textarea-a54e39b4db5f845841f1258b7398f24d0b1b8117.zip
react-autosize-textarea-a54e39b4db5f845841f1258b7398f24d0b1b8117.tar.gz
react-autosize-textarea-a54e39b4db5f845841f1258b7398f24d0b1b8117.tar.bz2
Initial Commitv0.1.0
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js62
1 files changed, 62 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000..25e5306
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,62 @@
+'use strict';
+
+var webpack = require('webpack');
+
+var config = {
+
+ entry: './lib/index',
+
+ output: {
+ path: './dist/',
+ filename: 'react-textarea-autosize.min.js',
+ library: 'ReactTextareaAutosize',
+ libraryTarget: 'umd'
+ },
+
+ cache: false,
+ debug: true,
+
+ stats: {
+ colors: true,
+ reasons: true
+ },
+
+ plugins: [
+ // new webpack.optimize.OccurenceOrderPlugin(),
+ new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
+ // new webpack.optimize.UglifyJsPlugin({minimize: true})
+ ],
+
+ resolve: {
+ extensions: ['', '.webpack.js', '.web.js', '.js', '.jsx']
+ },
+
+ externals: [{
+ "react": {
+ root: "react",
+ commonjs2: "react",
+ commonjs: "react",
+ amd: "react"
+ }
+ }, {
+ "react/addons": {
+ root: "react/addons",
+ commonjs2: "react/addons",
+ commonjs: "react/addons",
+ amd: "react/addons"
+ }
+ }],
+
+ module: {
+ loaders: [{
+ test: /\.css$/,
+ loader: 'style-loader!css-loader!'
+ }, {
+ test: /\.jsx?$/,
+ exclude: /node_modules/,
+ loader: 'babel-loader'
+ }]
+ }
+};
+
+module.exports = config;