Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Webpack not transpiling *.debug.* or *.release.* files #304

Open
@jevenson

Description

@jevenson

nativescript-dev-webpack@0.8.0
nativescript-worker-loader@0.8.1
webpack@3.2.0

In my application I have an environments folder with the following files:

environment.d.tsenvironment.debug.tsenvironment.release.ts

The environment file is referenced from other files in the application like this, and the d.ts file resolves the module import errors during development.

import { environment } from './../../environments/environment';

When doing a regular build withtns run <platform>, theenvironment.debug.ts file is renamed toenvironment.ts when it is copied to the platform folder. It will copy the release version if I provide the--release flag.

This does not work for webpack though. I get the following error:

Module not found: Error: Can't resolve './../../environments/environment'

It appears that the webpack plugin isn't taking these files into account. Is this a bug, or am I missing a Webpack loader?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp