Move myth configuration into Brocfile.js
.
This commit is contained in:
parent
4955dc104e
commit
873f19697d
@ -1,7 +1,9 @@
|
||||
/* global require, module */
|
||||
|
||||
var EmberApp = require('ember-cli/lib/broccoli/ember-app'),
|
||||
isProduction = EmberApp.env() === 'production',
|
||||
environment = EmberApp.env(),
|
||||
isProduction = environment === 'production',
|
||||
mythCompress = isProduction || environment === 'test',
|
||||
disabled = {enabled: false},
|
||||
assetLocation,
|
||||
app;
|
||||
@ -27,6 +29,8 @@ app = new EmberApp({
|
||||
source: './app/styles/app.css',
|
||||
inputFile: 'app.css',
|
||||
browsers: 'last 2 versions',
|
||||
sourcemap: !mythCompress,
|
||||
compress: mythCompress,
|
||||
outputFile: isProduction ? 'ghost.min.css' : 'ghost.css'
|
||||
},
|
||||
hinting: false,
|
||||
|
@ -41,9 +41,6 @@ module.exports = function (environment) {
|
||||
ENV.APP.LOG_TRANSITIONS = true;
|
||||
ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
||||
ENV.APP.LOG_VIEW_LOOKUPS = true;
|
||||
ENV.mythOptions = {
|
||||
sourcemap: true
|
||||
};
|
||||
}
|
||||
|
||||
if (environment === 'test') {
|
||||
@ -56,17 +53,6 @@ module.exports = function (environment) {
|
||||
ENV.APP.LOG_VIEW_LOOKUPS = false;
|
||||
|
||||
ENV.APP.rootElement = '#ember-testing';
|
||||
ENV.mythOptions = {
|
||||
compress: true,
|
||||
outputFile: 'ghost.min.css'
|
||||
};
|
||||
}
|
||||
|
||||
if (environment === 'production') {
|
||||
ENV.mythOptions = {
|
||||
compress: true,
|
||||
outputFile: 'ghost.min.css'
|
||||
};
|
||||
}
|
||||
|
||||
return ENV;
|
||||
|
Loading…
Reference in New Issue
Block a user