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

Webpack issue #164

Open
thierryskoda opened this issue Jan 4, 2017 · 1 comment
Open

Webpack issue #164

thierryskoda opened this issue Jan 4, 2017 · 1 comment

Comments

@thierryskoda
Copy link

Anyone having some issues using https://github.com/princed/angular-gettext-loader.

I have my .po file at the root and I added the loader in my Webpack config file and nothing happens...

Here's where I add the loader:

module: {
        preLoaders: [
            {
                test: /\.html$/,
                exclude: /node_modules/,
                loader: WebpackAngularGettext.loader()
            },
            {
                test: /\.js$/,
                loader: WebpackAngularGettext.loader()
            }
        ],
        loaders: [
            {test: /\.js$/, loader: 'babel-loader', exclude: /(node_modules|bower_components)/, query: {presets: ['stage-3', 'es2015'], plugins: ['transform-runtime']}},
            {test: /\.scss$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader!postcss-loader!sass-loader')},
            {test: /\.html$/, loader: 'html-loader'},
            {test: /\.json$/, loader: 'json-loader'},
            {test: /\.po$/, loader: 'angular-gettext'}
        ]
    },

Am I missing something?

Thank you for any help

@princed
Copy link
Contributor

princed commented Jan 17, 2017

Well, you should've created the issue in https://github.com/princed/angular-gettext-loader to let me see it :)

Didn't you forget to require your .po files?

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

No branches or pull requests

2 participants