8000 Webpack build не подключает static · Issue #395 · tars/tars · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Webpack build не подключает static #395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
impcyber opened this issue Mar 24, 2019 · 1 comment
Closed

Webpack build не подключает static #395

impcyber opened this issue Mar 24, 2019 · 1 comment

Comments

@impcyber
Copy link
Contributor
impcyber commented Mar 24, 2019

Добрый день.

После развертывания нового проекта с Webpack я заметил, что после команды build в папке с билдом отсутствует папка static/js, соответственно, не подключаются скрипты на страницах. Однако, она почему-то генерируется в корне папки /build.

image

Все заработало как надо после изменений в webpack.config.js

path: path.resolve(`${(tars.isDevMode) ? `${tars.config.devPath}` : `${tars.config.buildPath}`}/${staticFolderName}/js`),

на

path: path.resolve(`${(tars.isDevMode) ? `${tars.config.devPath}` : `${tars.options.build.path}`}/${staticFolderName}/js`),

Это некий баг или я что-то возможно упустил при настройке изначально?

$ tars -v
[ TARS ]: TARS-CLI version: "1.10.10"
[ TARS ]: TARS version in current project: "1.12.1"

$ npm -v
6.7.0

$ node -v
v11.12.0

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.8 (stretch)
Release: 9.8
Codename: stretch

@artem-malko
Copy link
Member

@impcyber Добрый день. Да, у нас баг. Если откроете pull request — будем очень рады!)

@artem-malko artem-malko self-assigned this Mar 24, 2019
artem-malko pushed a commit that referenced this issue Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0