Skip to content

Commit

Permalink
build: revert to JS webpack config
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <radialapps@gmail.com>
  • Loading branch information
pulsejet committed Oct 20, 2023
1 parent caf0ff3 commit b66d884
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
7 changes: 1 addition & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,5 @@
},
"vueCompilerOptions": {
"target": 2.7
},
"ts-node": {
"compilerOptions": {
"module": "CommonJS",
}
},
}
}
18 changes: 9 additions & 9 deletions webpack.config.ts → webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import webpack from 'webpack';
import path from 'path';
const webpack = require('webpack');
const path = require('path');

import WorkboxPlugin from 'workbox-webpack-plugin';
import TerserPlugin from 'terser-webpack-plugin';
import NodePolyfillPlugin from 'node-polyfill-webpack-plugin';
import { VueLoaderPlugin } from 'vue-loader';
const WorkboxPlugin = require('workbox-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
const { VueLoaderPlugin } = require('vue-loader');

const appName = process.env.npm_package_name!;
const appVersion = process.env.npm_package_version!;
const appName = process.env.npm_package_name;
const appVersion = process.env.npm_package_version;
const buildMode = process.env.NODE_ENV;
const isDev = buildMode === 'development';
console.info('Building', appName, appVersion, '\n');
Expand Down Expand Up @@ -38,7 +38,7 @@ module.exports = {
// Make sure sourcemaps have a proper path and do not
// leak local paths https://github.com/webpack/webpack/issues/3603
devtoolNamespace: appName,
devtoolModuleFilenameTemplate(info: any) {
devtoolModuleFilenameTemplate(info) {
const rootDir = process.cwd();
const rel = path.relative(rootDir, info.absoluteResourcePath);
return `webpack:///${appName}/${rel}`;
Expand Down

0 comments on commit b66d884

Please sign in to comment.