diff --git a/.gitignore b/.gitignore index 4f772ee..264744d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ npm-debug.log node_modules/ -dev/ -dist/ +.build/ tmp/ \ No newline at end of file diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js index d977016..949e9e4 100644 --- a/webpack/webpack.common.js +++ b/webpack/webpack.common.js @@ -13,6 +13,7 @@ module.exports = { }, output: { filename: '[name].js', + path: path.join(__dirname, '../.build/js'), }, optimization: { splitChunks: { diff --git a/webpack/webpack.dev.js b/webpack/webpack.dev.js index 26c485e..6b2a751 100644 --- a/webpack/webpack.dev.js +++ b/webpack/webpack.dev.js @@ -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({ @@ -13,7 +12,7 @@ common.plugins = [ to: '../', context: 'public', transform: (content, path) => { - if (path.includes('manifest') === false) { + if (!path.includes('manifest')) { return content } @@ -30,7 +29,4 @@ common.plugins = [ module.exports = merge(common, { mode: 'development', devtool: 'inline-source-map', - output: { - path: path.join(__dirname, '../dev/js'), - }, }) diff --git a/webpack/webpack.prod.js b/webpack/webpack.prod.js index a39e71a..e0991f2 100644 --- a/webpack/webpack.prod.js +++ b/webpack/webpack.prod.js @@ -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'), - }, })