This commit is contained in:
2020-05-25 16:07:30 +03:00
parent 0753359f07
commit 13971100cf
55 changed files with 32279 additions and 6964 deletions

20
frontend/webpack/paths.js Normal file
View File

@@ -0,0 +1,20 @@
const path = require('path');
const root = '../';
module.exports = {
root: path.resolve(__dirname, root),
outputPath: path.resolve(__dirname, root, 'build'),
entryPath: path.resolve(__dirname, root, 'src/index.jsx'),
source: path.resolve(__dirname, root, 'src/'),
templatePath: path.resolve(__dirname, root, 'public/template.html'),
cachePath: path.join(process.cwd(), 'node_modules/.cache/hard-source/', '[confighash]'),
publicPath: './',
assetPath: 'assets',
assetOriginPath: 'public/assets/',
scriptsPath: 'scripts',
imagesFolder: 'images',
fontsFolder: 'fonts',
cssFolder: 'css',
jsFolder: 'js',
};