Browse Source

split example from src

Paul 5 years ago
parent
commit
10eee3bc35
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      example/main.ts
  2. 1
    1
      webpack.config.js

src/example/main.ts → example/main.ts View File

1
-import { Client } from '../index';
1
+import { Client } from '../src/index';
2
 
2
 
3
 const url = 'ws://127.0.0.1:8081';
3
 const url = 'ws://127.0.0.1:8081';
4
 const client = new Client(
4
 const client = new Client(

+ 1
- 1
webpack.config.js View File

3
 
3
 
4
 module.exports = {
4
 module.exports = {
5
     mode: 'development',
5
     mode: 'development',
6
-    entry: './src/example/main.ts',
6
+    entry: './example/main.ts',
7
     devtool: 'inline-source-map',
7
     devtool: 'inline-source-map',
8
     devServer: {
8
     devServer: {
9
       contentBase: './dist',
9
       contentBase: './dist',