Mercurial > code > home > repos > streamed-graph
changeset 24:09080dc809ed
webpack config might finally work
author | drewp@bigasterisk.com |
---|---|
date | Fri, 13 Dec 2019 23:05:12 -0800 |
parents | 549b74ad3c03 |
children | 86270a59ae7b |
files | package.json tasks.py webpack.config.js yarn.lock |
diffstat | 4 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/package.json Fri Dec 13 22:42:57 2019 -0800 +++ b/package.json Fri Dec 13 23:05:12 2019 -0800 @@ -50,6 +50,7 @@ "compile": "tsc", "webpack-build": "webpack-cli --config webpack.config.js --mode production", "webpack-build-forever": "webpack-cli --config webpack.config.js --mode production --watch", + "webpack-dev-server": "webpack-dev-server --config webpack.config.js --mode development --port 8082 --watch ", "test": "jest --env=node --colors --resolver=jest-pnp-resolver --coverage test" } }
--- a/tasks.py Fri Dec 13 22:42:57 2019 -0800 +++ b/tasks.py Fri Dec 13 23:05:12 2019 -0800 @@ -11,7 +11,7 @@ @task def build(ctx): - ctx.run(f'yarn run webpack-cli --config webpack.config.js --mode production') + ctx.run(f'yarn run webpack-cli --config webpack.config.js --mode production') # --debug --display-error-details ctx.run(f'cp build/streamed-graph.bundle.js /my/site/homepage/www/rdf/streamed-graph.bundle.js') ctx.run(f'cp streamed-graph.css /my/site/homepage/www/rdf/streamed-graph.css')
--- a/webpack.config.js Fri Dec 13 22:42:57 2019 -0800 +++ b/webpack.config.js Fri Dec 13 23:05:12 2019 -0800 @@ -22,6 +22,7 @@ }, devtool: 'source-map', resolve: { + extensions: [".ts", ".js"], plugins: [ PnpWebpackPlugin, ],
--- a/yarn.lock Fri Dec 13 22:42:57 2019 -0800 +++ b/yarn.lock Fri Dec 13 23:05:12 2019 -0800 @@ -7781,7 +7781,6 @@ pnp-webpack-plugin: ^1.5.0 ts-jest: 24.2.0 ts-loader: ^6.2.1 - ts-pnp: ^1.1.5 typescript: ^3.7.3 webpack: ^4.41.2 webpack-cli: ^3.3.10 @@ -8210,7 +8209,7 @@ languageName: node linkType: hard -"ts-pnp@npm:^1.1.2, ts-pnp@npm:^1.1.5": +"ts-pnp@npm:^1.1.2": version: 1.1.5 resolution: "ts-pnp@npm:1.1.5" peerDependencies: