mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
fix loading ui-tour with webpack
This commit is contained in:
parent
ac4dcfd5fd
commit
c30e096e53
@ -68,7 +68,7 @@ import 'angular-hotkeys/build/hotkeys';
|
||||
import 'hone/dist/hone';
|
||||
import 'tether/dist/js/tether';
|
||||
import 'angular-bind-html-compile/angular-bind-html-compile';
|
||||
import 'angular-ui-tour/app/angular-ui-tour';
|
||||
import 'angular-ui-tour/dist/angular-ui-tour';
|
||||
import '@fortawesome/fontawesome-free';
|
||||
import '@fortawesome/fontawesome-free/js/v4-shims';
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="<%= I18n.locale %>" ng-app="application" class="app">
|
||||
<html lang="<%= I18n.locale %>" ng-app="application" class="app" ng-strict-di>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
@ -8,15 +8,12 @@ const jsErb = require('./loaders/js_erb');
|
||||
const sass = require('./loaders/sass');
|
||||
const sassErb = require('./loaders/sass_erb');
|
||||
const html = require('./loaders/html');
|
||||
const uiTour = require('./loaders/ui-tour');
|
||||
|
||||
environment.plugins.prepend('Provide', new webpack.ProvidePlugin({
|
||||
$: 'jquery',
|
||||
jQuery: 'jquery',
|
||||
'window.jQuery': 'jquery',
|
||||
_: 'lodash',
|
||||
Hone: 'hone',
|
||||
Tether: 'tether',
|
||||
Holder: 'holderjs',
|
||||
'window.CodeMirror': 'codemirror',
|
||||
MediumEditor: 'medium-editor',
|
||||
@ -31,7 +28,6 @@ environment.loaders.prepend('sass-erb', sassErb);
|
||||
environment.loaders.prepend('js', js);
|
||||
environment.loaders.append('html', html);
|
||||
environment.loaders.append('sass', sass);
|
||||
environment.loaders.append('uiTour', uiTour);
|
||||
|
||||
environment.splitChunks();
|
||||
|
||||
|
@ -8,7 +8,6 @@ module.exports = {
|
||||
loader: 'ngtemplate-loader',
|
||||
options: {
|
||||
relativeTo: path.join(__dirname, '../../../app/frontend/templates'),
|
||||
prefix: './app/frontend/templates',
|
||||
requireAngular: true
|
||||
}
|
||||
},
|
||||
|
@ -1,17 +0,0 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
test: /angular-ui-tour\/.*\.html$/i,
|
||||
use: [
|
||||
{
|
||||
loader: 'ngtemplate-loader',
|
||||
options: {
|
||||
relativeTo: path.join(__dirname, '../../../node_modules/angular-ui-tour/app/templates'),
|
||||
requireAngular: true
|
||||
}
|
||||
},
|
||||
{
|
||||
loader: 'html-loader'
|
||||
}
|
||||
]
|
||||
};
|
@ -1362,7 +1362,7 @@ angular-ui-codemirror@^0.3.0:
|
||||
|
||||
"angular-ui-tour@https://github.com/sleede/angular-ui-tour.git#master":
|
||||
version "0.9.4"
|
||||
resolved "https://github.com/sleede/angular-ui-tour.git#b53bbdb2149bc62f2f29f7095232618677470869"
|
||||
resolved "https://github.com/sleede/angular-ui-tour.git#e0be65fd3356e859dbde7e83e7ff2b7cfd693d79"
|
||||
dependencies:
|
||||
angular ">=1.5"
|
||||
angular-bind-html-compile "https://github.com/incuna/angular-bind-html-compile.git#1.4.1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user