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,4 +1,4 @@
1
-import { Client } from '../index';
1
+import { Client } from '../src/index';
2 2
 
3 3
 const url = 'ws://127.0.0.1:8081';
4 4
 const client = new Client(

+ 1
- 1
webpack.config.js View File

@@ -3,7 +3,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
3 3
 
4 4
 module.exports = {
5 5
     mode: 'development',
6
-    entry: './src/example/main.ts',
6
+    entry: './example/main.ts',
7 7
     devtool: 'inline-source-map',
8 8
     devServer: {
9 9
       contentBase: './dist',