Skip to content

Commit

Permalink
Merge pull request #54 from sensasi-delight:sensasi-delight/issue52
Browse files Browse the repository at this point in the history
`dist` is for final `.crx` file
  • Loading branch information
sensasi-delight authored May 2, 2024
2 parents c1812cb + b4e3939 commit 5b41471
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
npm-debug.log
node_modules/
dev/
dist/
.build/
tmp/
1 change: 1 addition & 0 deletions webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = {
},
output: {
filename: '[name].js',
path: path.join(__dirname, '../.build/js'),
},
optimization: {
splitChunks: {
Expand Down
6 changes: 1 addition & 5 deletions webpack/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
const { merge } = require('webpack-merge')
const CopyPlugin = require('copy-webpack-plugin')
const common = require('./webpack.common.js')
const path = require('path')

common.plugins = [
new CopyPlugin({
Expand All @@ -13,7 +12,7 @@ common.plugins = [
to: '../',
context: 'public',
transform: (content, path) => {
if (path.includes('manifest') === false) {
if (!path.includes('manifest')) {
return content
}

Expand All @@ -30,7 +29,4 @@ common.plugins = [
module.exports = merge(common, {
mode: 'development',
devtool: 'inline-source-map',
output: {
path: path.join(__dirname, '../dev/js'),
},
})
4 changes: 0 additions & 4 deletions webpack/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

const { merge } = require('webpack-merge')
const common = require('./webpack.common.js')
const path = require('path')

module.exports = merge(common, {
mode: 'production',
output: {
path: path.join(__dirname, '../dist/js'),
},
})

0 comments on commit 5b41471

Please sign in to comment.