Skip to content
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

CSS preprocessor is not active if the app is named differently from the package.json#name field #176

Closed
NullVoxPopuli opened this issue May 15, 2024 · 0 comments · Fixed by #235 or #236

Comments

@NullVoxPopuli
Copy link
Collaborator

NullVoxPopuli commented May 15, 2024

I ran in to this as a laziness when copying the classic-app in #174
and without changing code, you can set name in ember-cli-build.js:

module.exports = function (defaults) {
  const app = new EmberApp(defaults, {
    name: 'classic-app',

and the modulePrefix in config/environment.js:

module.exports = function (environment) {
  const ENV = {
    modulePrefix: 'classic-app',

this works with all features of ember-cli, but the css preprocessor is expecting the name to match the package.json#name field (and likely other file filtering as well).

I'd consider this a bug -- but the work-around is easy enough for now (rename all your imports of the custom name to match the package.json#name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant