Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

234
Views
relative path for url(....) in css

I am using WebPack 2.7.0 and I want to resolve allies in scss how can I do that? my css code is :

  .login-bg {
      background: url(~#/login-bg.jpg) no-repeat fixed top left;
    }

my webpack config is :

 module.exports = {
      module: {
        rules: [
          {
            test: /\.css$/,
            use: [{ loader: 'style-loader' }, { loader: 'css-loader' }]
          },
          {
            test: /\.scss$/,
            use: [
              { loader: 'vue-style-loader' },
              { loader: 'css-loader', options: { sourceMap: !isProduction } },
              { loader: 'sass-loader', options: { sourceMap: !isProduction } }
            ]
          }
        ]
      },
      resolve: {
        alias: {
          '#': path.resolve(__dirname, `./src/assets/img`),
        },
        extensions: ['*', '.js', '.vue', '.json', '.css', '.scss']
      },
    }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!