Move example to it's own folder
This commit is contained in:
parent
f66efed777
commit
a2b89411b0
@ -5,9 +5,9 @@ import * as React from 'react';
|
||||
import { render } from 'react-dom';
|
||||
import * as injectTapEventPlugin from 'react-tap-event-plugin';
|
||||
|
||||
import { Documentation } from '../components/documentation';
|
||||
import { DocsInfo } from '../docs_info';
|
||||
import { DocsInfoConfig, SupportedDocJson } from '../types';
|
||||
import { Documentation } from '../../src/ts/components/documentation';
|
||||
import { DocsInfo } from '../../src/ts/docs_info';
|
||||
import { DocsInfoConfig, SupportedDocJson } from '../../src/ts/types';
|
||||
injectTapEventPlugin();
|
||||
|
||||
/* tslint:disable:no-var-requires */
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user