aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs-example/webpack.config.js
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-08-24 01:58:33 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-08-24 01:58:33 +0800
commit57c104119c409c053eb977553c92341c3ca83afd (patch)
tree7f1129fd01001604e7412e33ccef202c1ff90612 /packages/react-docs-example/webpack.config.js
parentcd5c73550b969fe0a87524143ce617749935427a (diff)
parent6e27324a341801e1a2d8d6989d749dfe021ae39b (diff)
downloaddexon-sol-tools-57c104119c409c053eb977553c92341c3ca83afd.tar
dexon-sol-tools-57c104119c409c053eb977553c92341c3ca83afd.tar.gz
dexon-sol-tools-57c104119c409c053eb977553c92341c3ca83afd.tar.bz2
dexon-sol-tools-57c104119c409c053eb977553c92341c3ca83afd.tar.lz
dexon-sol-tools-57c104119c409c053eb977553c92341c3ca83afd.tar.xz
dexon-sol-tools-57c104119c409c053eb977553c92341c3ca83afd.tar.zst
dexon-sol-tools-57c104119c409c053eb977553c92341c3ca83afd.zip
Merge branch 'development' into feature/forwarder-helper/init
* development: (187 commits) Remove trailing slash Fix linter Stop nesting interfaces and add necessary type exports Remove duplicate type and remove nested interface Add support for rending the Tuple type Add missing keyu Remove excessive timestamp Improve doc commebnt Remove docs catch-all endpoint Fix comments Look for all TS mapped types Add catch and exit with non-zero Remove superfluous dep Fix CHANGELOG entry Fix double assignment Upgrade Typedoc to 0.12.0, which works with TS 3.x Fix prettier issues Enable dry run of release publishing and handle git tags existing update yarn.lock Missing/superfluous type exports from connect ...
Diffstat (limited to 'packages/react-docs-example/webpack.config.js')
-rw-r--r--packages/react-docs-example/webpack.config.js83
1 files changed, 0 insertions, 83 deletions
diff --git a/packages/react-docs-example/webpack.config.js b/packages/react-docs-example/webpack.config.js
deleted file mode 100644
index 30f3132da..000000000
--- a/packages/react-docs-example/webpack.config.js
+++ /dev/null
@@ -1,83 +0,0 @@
-const path = require('path');
-const webpack = require('webpack');
-
-module.exports = {
- entry: ['./ts/index.tsx'],
- output: {
- path: path.join(__dirname, '/public'),
- filename: 'bundle.js',
- chunkFilename: 'bundle-[name].js',
- publicPath: '/',
- },
- devtool: 'source-map',
- resolve: {
- modules: [path.join(__dirname, '/ts'), 'node_modules'],
- extensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.md'],
- alias: {
- ts: path.join(__dirname, '/ts'),
- less: path.join(__dirname, '/less'),
- md: path.join(__dirname, '/md'),
- },
- },
- module: {
- rules: [
- {
- test: /\.js$/,
- loader: 'source-map-loader',
- exclude: [
- // instead of /\/node_modules\//
- path.join(process.cwd(), 'node_modules'),
- ],
- },
- {
- test: /\.tsx?$/,
- loader: 'awesome-typescript-loader',
- },
- {
- test: /\.css$/,
- loaders: ['style-loader', 'css-loader'],
- },
- {
- test: /\.less$/,
- loader: 'style-loader!css-loader!less-loader',
- exclude: /node_modules/,
- },
- {
- test: /\.json$/,
- loader: 'json-loader',
- },
- {
- test: /\.md$/,
- use: 'raw-loader',
- },
- ],
- },
- devServer: {
- port: 3000,
- disableHostCheck: true,
- historyApiFallback: {
- // Fixes issue where having dots in URL path that aren't part of fileNames causes webpack-dev-server
- // to fail.
- // Source: https://github.com/cvut/fittable/issues/171
- rewrites: [
- {
- from: /.*$/,
- to: function() {
- return 'index.html';
- },
- },
- ],
- },
- contentBase: path.join(__dirname, '/public'),
- },
- plugins:
- process.env.NODE_ENV === 'production'
- ? [
- new webpack.DefinePlugin({
- 'process.env': {
- NODE_ENV: JSON.stringify(process.env.NODE_ENV),
- },
- }),
- ]
- : [],
-};