Skip to content

Commit

Permalink
Remove uncessary comments and update public/index.html file
Browse files Browse the repository at this point in the history
  • Loading branch information
Dahkenangnon authored Dec 27, 2023
1 parent 720c117 commit 39d2d3e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 30 deletions.
5 changes: 2 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,15 @@

<h1 class="text-center">BjLocationData, javascript library</h1>
<p class="text-center">Simple javascript library to get location data of Benin Republic</p>
<p class="text-center">Please see the source code this page to see more other option, like searching for location, etc.</p>

<!-- Your bj location holder element -->
<div id="bj-location-data-holder" class="bj-location-data-holder">Here</div>

<!-- State -->
<div id="state" class="text-center"></div>
<footer>
<p>Developed with ❤️ by <a href="https://dah-kenangnon.com" target="_blank">Dah Kenangnon</a></p>
</footer>
<!-- Now insert the script -->

<script src="./dist/bundle.js"></script>

<!-- Now initialize the script and start using it-->
Expand Down
Empty file removed test/data/departments.ts
Empty file.
31 changes: 4 additions & 27 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,20 @@
// const path = require('path');

// module.exports = {
// entry: './src/index.ts',
// output: {
// filename: 'bundle.js',
// path: path.resolve(__dirname, 'dist')
// },
// resolve: {
// extensions: ['.ts', '.js']
// },
// module: {
// rules: [
// {
// test: /\.ts$/,
// use: 'ts-loader',
// exclude: /node_modules/
// }
// ]
// }
// };

const path = require('path');

module.exports = {
//mode: 'production', // Enables optimizations for production like minification
entry: './src/index.ts',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'public/dist'),
sourceMapFilename: "[name].js.map" // Generates source map files
sourceMapFilename: "[name].js.map"
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'public/dist'),
library: 'BjLocationData', // This is the name of your library
libraryTarget: 'umd', // Universal Module Definition
library: 'BjLocationData',
libraryTarget: 'umd',
umdNamedDefine: true
},
devtool: 'source-map', // Generates source maps
devtool: 'source-map',
resolve: {
extensions: ['.ts', '.js']
},
Expand Down

0 comments on commit 39d2d3e

Please sign in to comment.