Skip to content

Commit e724487

Browse files
authored
Fix .gitignore not ignoring webpack.config.js
The path, when used with `./webpack.config.js` does not seem to apply to ignore the file - as a result it gets committed.
1 parent 4190aea commit e724487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ const gitignoreAdditions = (module.exports.gitignoreAdditions = async (api) => {
548548
try {
549549
let gitignoreContent;
550550
const gitignorePath = api.resolve('.gitignore');
551-
const gitignoreAdditions = newline + '# NativeScript application' + newline + 'hooks' + newline + 'platforms' + newline + './webpack.config.js';
551+
const gitignoreAdditions = newline + '# NativeScript application' + newline + 'hooks' + newline + 'platforms' + newline + 'webpack.config.js';
552552

553553
if (fs.existsSync(gitignorePath)) {
554554
gitignoreContent = fs.readFileSync(gitignorePath, {

0 commit comments

Comments
 (0)