aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs/webpack.config.js
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-07 17:50:38 +0800
committerFabio Berger <me@fabioberger.com>2018-03-07 17:50:38 +0800
commita2b89411b05fa6f2e721a49b7f90f46fad12d20b (patch)
treede621afdd27d833b4ff759ae1d0108df3647b2c4 /packages/react-docs/webpack.config.js
parentf66efed777f1046718478a28f5dd3c4942379774 (diff)
downloaddexon-sol-tools-a2b89411b05fa6f2e721a49b7f90f46fad12d20b.tar
dexon-sol-tools-a2b89411b05fa6f2e721a49b7f90f46fad12d20b.tar.gz
dexon-sol-tools-a2b89411b05fa6f2e721a49b7f90f46fad12d20b.tar.bz2
dexon-sol-tools-a2b89411b05fa6f2e721a49b7f90f46fad12d20b.tar.lz
dexon-sol-tools-a2b89411b05fa6f2e721a49b7f90f46fad12d20b.tar.xz
dexon-sol-tools-a2b89411b05fa6f2e721a49b7f90f46fad12d20b.tar.zst
dexon-sol-tools-a2b89411b05fa6f2e721a49b7f90f46fad12d20b.zip
Move example to it's own folder
Diffstat (limited to 'packages/react-docs/webpack.config.js')
-rw-r--r--packages/react-docs/webpack.config.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/react-docs/webpack.config.js b/packages/react-docs/webpack.config.js
index 768bb238c..245aee6e3 100644
--- a/packages/react-docs/webpack.config.js
+++ b/packages/react-docs/webpack.config.js
@@ -2,21 +2,21 @@ const path = require('path');
const webpack = require('webpack');
module.exports = {
- entry: ['./src/ts/example/index.tsx'],
+ entry: ['./example/ts/index.tsx'],
output: {
- path: path.join(__dirname, '/src/public'),
+ path: path.join(__dirname, '/example/public'),
filename: 'bundle.js',
chunkFilename: 'bundle-[name].js',
publicPath: '/',
},
devtool: 'source-map',
resolve: {
- modules: [path.join(__dirname, '/src/ts'), 'node_modules'],
+ modules: [path.join(__dirname, '/example/ts'), 'node_modules'],
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.md'],
alias: {
- ts: path.join(__dirname, '/src/ts'),
- less: path.join(__dirname, '/src/less'),
- md: path.join(__dirname, '/src/md'),
+ ts: path.join(__dirname, '/example/ts'),
+ less: path.join(__dirname, '/example/less'),
+ md: path.join(__dirname, '/example/md'),
},
},
module: {
@@ -64,7 +64,7 @@ module.exports = {
},
],
},
- contentBase: path.join(__dirname, '/src/public'),
+ contentBase: path.join(__dirname, '/example/public'),
},
plugins:
process.env.NODE_ENV === 'production'